/* 
 * Anton Petrov Architects ERP - Auth Pages
 */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: #F5F5F5;
}

/* Left side - decorative */
.auth-aside {
    flex: 1;
    display: none;
    background: linear-gradient(145deg, #D4B896 0%, #A89070 50%, #8C7A60 100%);
    position: relative;
    overflow: hidden;
}

.auth-aside::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.auth-aside-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-12);
    color: white;
}

.auth-aside-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.auth-aside-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 400px;
    color: white;
}

.auth-aside-quote {
    position: absolute;
    bottom: var(--space-8);
    left: var(--space-8);
    font-style: italic;
    opacity: 0.85;
    font-size: var(--font-size-sm);
    text-align: left;
}

/* Right side - form */
.auth-main {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-10);
}

.auth-logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1A1A;
    letter-spacing: 0.02em;
}

.auth-logo-subtitle {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    margin-top: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.auth-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #E0E0E0;
}

.auth-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-2);
    color: #111111;
}

.auth-subtitle {
    color: #555555;
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-label {
    color: #111111;
    font-weight: 600;
}

.auth-form .form-input {
    padding: var(--space-4) var(--space-5);
    font-size: var(--font-size-base);
    border-radius: var(--radius);
    border: 2px solid #CCCCCC;
    background: #FFFFFF;
    color: #111111;
}

.auth-form .form-input::placeholder {
    color: #999999;
}

.auth-form .form-input:focus {
    border-color: #A89070;
    box-shadow: 0 0 0 3px rgba(168, 144, 112, 0.25);
    background: #FFFFFF;
    outline: none;
}

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: #333333;
}

.auth-submit {
    margin-top: var(--space-4);
}

.auth-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.auth-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-errors li {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    padding: var(--space-1) 0;
}

/* Large screens */
@media (min-width: 1024px) {
    .auth-page {
        display: flex;
    }
    
    .auth-aside {
        display: flex;
        flex: 1.2;
    }
    
    .auth-main {
        flex: 1;
        max-width: 560px;
        padding: var(--space-12);
    }
}


