@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #383838;
}

.auth-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.auth-left {
    width: 45%;
    background-color: #f0ebe1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-right {
    width: 55%;
    background-color: #383838;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #383838;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    font-size: 1rem;
    color: #666;
}

.auth-illustration {
    width: 80%;
    max-width: 400px;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.auth-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f0ebe1;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 0.95rem;
    color: rgba(240, 235, 225, 0.7);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f0ebe1;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper iconify-icon {
    position: absolute;
    left: 1rem;
    color: rgba(240, 235, 225, 0.5);
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background-color: rgba(240, 235, 225, 0.1);
    border: 1px solid rgba(240, 235, 225, 0.2);
    border-radius: 12px;
    color: #f0ebe1;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: rgba(240, 235, 225, 0.4);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: rgba(255, 140, 66, 0.6);
    background-color: rgba(240, 235, 225, 0.15);
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.input-wrapper select option {
    background-color: #383838;
    color: #f0ebe1;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(240, 235, 225, 0.5);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: rgba(240, 235, 225, 0.8);
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background-color: #f0ebe1;
    color: #383838;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    background-color: #e8e4da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 235, 225, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer p {
    font-size: 0.95rem;
    color: rgba(240, 235, 225, 0.6);
}

.auth-footer a {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background-color: #4ade80;
    color: #166534;
}

.toast.error {
    background-color: #f87171;
    color: #7f1d1d;
}

@media (max-width: 1024px) {
    .auth-left {
        width: 40%;
    }
    
    .auth-right {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        width: 100%;
        padding: 1.5rem;
    }
    
    .auth-brand {
        margin-bottom: 1rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .auth-illustration {
        display: none;
    }
    
    .auth-right {
        width: 100%;
        flex: 1;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }
}
