/* ============================================================
   auth-base.css  —  Shared styles for all auth pages
   Colors defined in theme.css — change there to update globally
   ============================================================ */

:root {
    --auth-primary: #3F51B5;
    --auth-primary-dark: #303F9F;
    --auth-primary-darker: #1A237E;
    --auth-primary-light: #E8EAF6;
    --auth-primary-bg: #F0F4FF;
    --auth-border: #C5CAE9;
    --auth-text: #2d3436;
    --auth-muted: #78909c;
    --auth-label: #546e7a;
    --auth-error: #D32F2F;
    --auth-shadow: rgba(63, 81, 181, 0.30);
}

/* ---- Inputs ---- */
.auth-input {
    width: 100%;
    border: 1.5px solid var(--auth-border) !important;
    border-radius: 10px !important;
    padding: 11px 40px 11px 14px !important;
    font-size: 14px !important;
    color: var(--auth-text) !important;
    background: var(--auth-primary-bg) !important;
    outline: none;
    transition: border-color .2s, box-shadow .2s !important;
}

.auth-input:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, .14) !important;
    background: #fff !important;
}

/* ---- Labels ---- */
.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-label);
    margin-bottom: 6px;
    display: block;
}

/* ---- Field wrapper with icon ---- */
.auth-field-wrap {
    position: relative;
}

.auth-field-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    color: var(--auth-primary);
    font-size: 16px;
    pointer-events: none;
}

.auth-toggle-pw {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    background: none;
    border: none;
    color: #90a4ae;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.auth-toggle-pw:hover {
    color: var(--auth-primary);
}

/* ---- Primary button ---- */
.auth-btn-primary {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    box-shadow: 0 5px 18px var(--auth-shadow);
    transition: all .25s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, var(--auth-primary-dark), var(--auth-primary-darker));
    box-shadow: 0 8px 24px rgba(63, 81, 181, .45);
    transform: translateY(-1px);
    color: #fff;
}

/* ---- Secondary / ghost button ---- */
.auth-btn-ghost {
    background: rgba(84, 110, 122, .07);
    color: var(--auth-label);
    border: 1.5px solid #cfd8dc;
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
    text-decoration: none;
}

.auth-btn-ghost:hover {
    background: var(--auth-label);
    color: #fff;
}

/* ---- Card (generic) ---- */
.auth-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .11);
    overflow: hidden;
    width: 100%;
}

/* ---- Card header (teal gradient) ---- */
.auth-card-header {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-darker) 100%);
    padding: 22px 28px;
    position: relative;
    overflow: hidden;
}

.auth-card-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, .07);
    border-radius: 50%;
    pointer-events: none;
}

.auth-card-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    pointer-events: none;
}

.auth-card-header .ach-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.auth-card-header .ach-icon i {
    font-size: 26px;
    color: #fff;
}

.auth-card-header .ach-title {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}

.auth-card-header .ach-sub {
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

/* ---- Card body ---- */
.auth-card-body {
    padding: 26px 28px;
}

/* ---- Error box ---- */
.auth-error-box {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 10px 14px;
    color: #c62828;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Info box ---- */
.auth-info-box {
    background: #E0E7FF;
    border: 1px solid #B3C5FF;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    color: var(--auth-primary-dark);
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.auth-info-box i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Validation ---- */
.auth-field-error {
    color: var(--auth-error);
    font-size: 11px;
    margin-top: 3px;
    display: block;
}

/* ---- Divider ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0bec5;
    font-size: 12px;
    margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ---- Back link ---- */
.auth-back-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--auth-muted);
    text-decoration: none;
    justify-content: center;
    margin-top: 16px;
    transition: color .2s;
}

.auth-back-link:hover {
    color: var(--auth-primary);
}

/* ---- Strength bar ---- */
.auth-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    margin-top: 6px;
    overflow: hidden;
}

.auth-strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width .3s, background .3s;
}

/* ---- Social buttons ---- */
.auth-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    text-decoration: none;
    transition: all .2s;
}

.auth-social-btn:hover {
    transform: translateY(-2px);
}

.sb-fb {
    background: #1877f2;
    color: #fff;
}

.sb-fb:hover {
    background: #0d65d8;
    color: #fff;
}

.sb-wa {
    background: #25d366;
    color: #fff;
}

.sb-wa:hover {
    background: #1ebb56;
    color: #fff;
}

.sb-tw {
    background: #1da1f2;
    color: #fff;
}

.sb-tw:hover {
    background: #0d8cdb;
    color: #fff;
}

/* ---- Responsive ---- */
@@media (max-width: 768px) {
    .auth-hide-mobile {
        display: none !important;
    }

    .auth-card-body {
        padding: 20px;
    }
}