/* =========================
   AUTH PAGE LAYOUT
========================= */
.auth-page,
.auth-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-page {
    background: linear-gradient(135deg, rgba(57, 149, 209, 0.1) 0%, #eee 100%);
}

.auth-view {
    background: linear-gradient(135deg, rgba(57,149,209,0.05), rgba(248,145,31,0.05));
    padding: 3rem 2rem;
}

/* =========================
   AUTH CONTAINER
========================= */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
}

.auth-container.single-column {
    grid-template-columns: 1fr;
}

/* Remove right-side info panel */
.auth-info {
    display: none;
}

/* =========================
   AUTH BOX
========================= */
.auth-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* =========================
   HEADER
========================= */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.auth-icon i {
    font-size: 48px;
}

.auth-header h1,
.auth-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-header p,
.auth-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

/* =========================
   ALERTS & MESSAGES
========================= */
.alert,
.error-message,
.success-message,
.redirect-notice {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 20px;
}

.alert-success,
.success-message {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.alert-error,
.error-message {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.alert-info,
.redirect-notice {
    background: rgba(57, 149, 209, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(57, 149, 209, 0.2);
}

.error-message,
.success-message,
.redirect-notice {
    text-align: center;
    font-weight: 500;
}

/* =========================
   FORM
========================= */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(57, 149, 209, 0.1);
}

/* =========================
   INPUT WITH ICONS & PASSWORD TOGGLE
========================= */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    pointer-events: none;
    font-size: 18px;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(57, 149, 209, 0.1);
}

/* Password eye toggle */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-lighter);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* =========================
   PASSWORD FEEDBACK
========================= */
small.password-hint {
    display: block;
    margin-top: 0.375rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.password-match {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.password-match.match { color: var(--success); }
.password-match.no-match { color: var(--error); }

.password-strength {
    margin-bottom: 1.5rem;
}

.strength-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.strength-bar {
    height: 6px;
    background: var(--border-lighter);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 3px;
}

.strength-fill.weak { background: #f44336; }
.strength-fill.fair { background: #ff9800; }
.strength-fill.good { background: #2196f3; }
.strength-fill.strong { background: #4caf50; }

.strength-text {
    font-size: 0.875rem;
    font-weight: 600;
}

/* =========================
   FORM OPTIONS
========================= */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-group input[type="checkbox"],
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label,
.checkbox-label label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.link:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-primary-full,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.btn-primary-full { width: 100%; }

.btn-primary,
.btn-primary-full { background: var(--primary-color); color: white; }
.btn-primary:hover,
.btn-primary-full:hover { background: #2980b9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(57,149,209,0.3); }
.btn-primary:active,
.btn-primary-full:active { transform: translateY(0); }

.btn-secondary { background: var(--secondary-color); color: white; }
.btn-secondary:hover { background: #e67e00; transform: translateY(-1px); }

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 968px) {
    .auth-container { grid-template-columns: 1fr; max-width: 500px; }
    .auth-info { display: none; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .auth-page,
    .auth-view { padding: 1rem; }

    .auth-box { padding: 2rem 1.5rem; }

    .auth-header h1,
    .auth-box h2 { font-size: 1.75rem; }

    .auth-icon { width: 60px; height: 60px; }
    .auth-icon i { font-size: 36px; }

    .form-options { flex-direction: column; align-items: flex-start; }

    .btn-primary,
    .btn-primary-full,
    .btn-secondary { padding: 1rem 1.5rem; }
}
/* Hide side info panel on small screens */
@media (max-width: 991px) {
    .auth-info {
        display: none;
    }

    /* Make auth-box full width on mobile */
    .auth-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .auth-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}
