/* Auth Body */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 700px;
}

/* Form Section */
.auth-form-section {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-wrapper {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

.auth-logo-img {
    height: 50px;
    width: auto;
}

.auth-logo-text h1 {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.auth-logo-text p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 32px;
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Alert Messages */
.alert-container {
    margin-bottom: 24px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.alert-info {
    background-color: #eff6ff;
    color: var(--primary-blue);
    border-left: 4px solid var(--primary-blue);
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.label-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    color: var(--gray-900);
    transition: all 0.2s ease;
    background-color: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 160, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.input-error {
    border-color: #f56565;
}

.input-error:focus {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--gray-500);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Field Error */
.field-error {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #f56565;
}

/* Form Hint */
.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: -4px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
}

.checkbox-full {
    width: 100%;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox:checked {
    accent-color: var(--primary-blue);
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.link-primary {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 160, 0.3);
}

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

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 8px;
}

.form-footer p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.register-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Back Home */
.back-home {
    margin-top: 32px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--primary-blue);
    gap: 12px;
}

.back-icon {
    width: 18px;
    height: 18px;
}

/* Info Section */
.auth-info-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.auth-info-content {
    position: relative;
    z-index: 1;
    max-width: 450px;
}

/* Info Decoration */
.info-decoration {
    margin-bottom: 32px;
}

.decoration-icon {
    width: 80px;
    height: 80px;
    opacity: 0.9;
}

.auth-info-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.auth-info-content > p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Info Features */
.info-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.info-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-features span {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.95;
}

/* Info Stats */
.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* Info Notice */
.info-notice {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    margin-top: 32px;
}

.notice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-notice p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-info-section {
        display: none;
    }

    .auth-form-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .auth-body {
        padding: 0;
        background: var(--white);
    }

    .auth-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .auth-form-section {
        padding: 40px 24px;
    }

    .auth-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .auth-form-section {
        padding: 32px 20px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .auth-logo {
        margin-bottom: 32px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}