/* ===================================
   AUTH PAGES STYLING
   =================================== */

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

/* Container chính */
.auth-container {
    width: 100%;
    max-width: 450px;
}

/* Card chứa form */
.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header của card */
.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.auth-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Logo/Icon */
.auth-logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

/* Body của card */
.auth-body {
    padding: 40px 30px;
}

/* Form groups */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* Input styling */
.form-control-auth {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-auth:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Input icons */
.input-icon {
    position: absolute;
    right: 18px;
    top: 43px;
    color: #999;
    font-size: 18px;
}

/* Button styling */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

/* Alert messages */
.alert-custom {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.4s ease-out;
}

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

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

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

.alert-info-custom {
    background: #e7f3ff;
    color: #0066cc;
    border-left: 4px solid #0066cc;
}

/* Footer links */
.auth-footer {
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
    color: #999;
    font-size: 13px;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 43px;
    cursor: pointer;
    color: #999;
    user-select: none;
}

.password-toggle:hover {
    color: #667eea;
}

/* Checkbox styling */
.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.custom-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-page {
        padding: 10px;
    }

    .auth-header {
        padding: 30px 20px;
    }

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

    .auth-body {
        padding: 30px 20px;
    }

    .auth-footer {
        padding: 15px 20px 25px;
    }
}

/* Loading state */
.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-auth.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}