/* =========================================
   AUTH PAGE — Glassmorphism
========================================= */

.auth-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background photo */
.auth-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: authBgZoom 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes authBgZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

.auth-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10,22,40,0.6) 0%,
        rgba(10,22,40,0.3) 50%,
        rgba(10,22,40,0.5) 100%
    );
    z-index: 1;
}

/* Glassmorphism card */
.auth-glass {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
        0 32px 64px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    animation: authCardIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Logo */
.auth-glass__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 2rem;
    justify-content: center;
}

.auth-glass__logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-glass__logo span {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.auth-glass__logo span span {
    color: #FF6B00;
}

/* Title */
.auth-glass__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 0.4rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.auth-glass__sub {
    text-align: center;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

/* Messages */
.auth-messages {
    margin-bottom: 1rem;
}

.auth-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.auth-message--error   { background: rgba(239,68,68,0.2); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.auth-message--success { background: rgba(34,197,94,0.2); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.auth-message--warning { background: rgba(245,158,11,0.2); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }

/* Form */
.auth-glass__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-glass__field {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-glass__field-icon {
    position: absolute;
    left: 1rem;
    font-size: 1rem;
    z-index: 2;
    opacity: 0.7;
}

.auth-glass__input {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 3rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    outline: none;
}

.auth-glass__input::placeholder {
    color: rgba(255,255,255,0.45);
}

.auth-glass__input:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,107,0,0.6);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.auth-glass__eye {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    min-height: auto;
    padding: 0;
}

.auth-glass__eye:hover { opacity: 1; }

/* Button */
.auth-glass__btn {
    padding: 1rem;
    background: linear-gradient(135deg, #FF6B00, #FF8C3A);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 24px rgba(255,107,0,0.4);
    margin-top: 0.5rem;
}

.auth-glass__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,107,0,0.5);
}

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

/* Footer */
.auth-glass__footer {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

.auth-glass__footer a {
    color: #FF6B00;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.auth-glass__footer a:hover {
    color: #FF8C3A;
}

/* Stats */
.auth-page__stats {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 3rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    white-space: nowrap;
}

.auth-page__stat {
    text-align: center;
}

.auth-page__stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #FF6B00;
    font-family: 'Inter', sans-serif;
}

.auth-page__stat span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
}

/* Mobile */
@media (max-width: 480px) {
    .auth-glass {
        margin: 1rem;
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .auth-page__stats {
        gap: 1.5rem;
        padding: 0.6rem 1.5rem;
        bottom: 1.5rem;
    }
}


/* ===== AUTH PAGE FIX ===== */

.auth-page {

    position: relative !important;

    min-height: calc(100vh - 65px) !important;

    margin-top: -65px !important;

}



.site-footer {

    position: relative !important;

    z-index: 10 !important;

}




/* ===== CHANGE PASSWORD ===== */

.cp-hero {

    background: linear-gradient(135deg, #06101f 0%, #0d1f3c 100%);

    padding: 90px 1.5rem 4rem;

    position: relative;

    overflow: hidden;

}



.cp-hero::before {

    content: "";

    position: absolute;

    top: -100px; right: -100px;

    width: 400px; height: 400px;

    background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 70%);

    pointer-events: none;

}



.cp-hero__inner {

    max-width: 1320px;

    margin: 0 auto;

    position: relative;

    z-index: 1;

}



.cp-hero__tag {

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    padding: 0.4rem 1.1rem;

    background: rgba(255,255,255,0.1);

    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.15);

    border-radius: 50px;

    font-size: 0.8rem;

    font-weight: 600;

    color: white;

    margin-bottom: 1.25rem;

}



.cp-hero__title {

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 900;

    color: white;

    letter-spacing: -0.03em;

    margin-bottom: 0.75rem;

    font-family: "Inter", sans-serif;

}



.cp-hero__sub {

    font-size: 1rem;

    color: rgba(255,255,255,0.6);

}



.cp-body {

    background: radial-gradient(ellipse at 50% 0%, rgba(255,140,0,0.04) 0%, transparent 40%), #F4F6FA;

    padding: 2rem 1.5rem 4rem;

}



.cp-body__inner {

    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 360px 1fr;

    gap: 2rem;

    align-items: start;

}



/* Security card */

.cp-security-card {

    background: white;

    border-radius: 24px;

    padding: 2rem;

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow: 0 4px 24px rgba(0,0,0,0.06);

    position: sticky;

    top: 88px;

}



.cp-security-card__icon {

    font-size: 2.5rem;

    margin-bottom: 1rem;

    display: block;

}



.cp-security-card h2 {

    font-size: 1.3rem;

    font-weight: 900;

    color: #0A1628;

    letter-spacing: -0.02em;

    font-family: "Inter", sans-serif;

    margin-bottom: 0.5rem;

    line-height: 1.2;

}



.cp-security-card > p {

    font-size: 0.85rem;

    color: #888;

    margin-bottom: 1.5rem;

    line-height: 1.6;

}



.cp-security-items {

    display: flex;

    flex-direction: column;

    gap: 0.75rem;

    margin-bottom: 1.5rem;

    padding-bottom: 1.5rem;

    border-bottom: 1px solid #f0f0f0;

}



.cp-security-item {

    display: flex;

    align-items: center;

    gap: 0.75rem;

    padding: 0.75rem;

    background: #F8F9FB;

    border-radius: 12px;

    border: 1px solid #f0f0f0;

}



.cp-security-item--ok {

    background: rgba(34,197,94,0.06);

    border-color: rgba(34,197,94,0.15);

}



.cp-security-item__icon { font-size: 1.2rem; flex-shrink: 0; }



.cp-security-item strong {

    display: block;

    font-size: 0.82rem;

    font-weight: 700;

    color: #0A1628;

    margin-bottom: 2px;

}



.cp-security-item span {

    font-size: 0.72rem;

    color: #888;

}



.cp-tips__title {

    font-size: 0.78rem;

    font-weight: 700;

    color: #0A1628;

    margin-bottom: 0.75rem;

}



.cp-tips ul {

    list-style: none;

    padding: 0; margin: 0;

    display: flex;

    flex-direction: column;

    gap: 0.4rem;

}



.cp-tips li {

    font-size: 0.78rem;

    color: #666;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.cp-tips li::before {

    content: "✓";

    color: #FF6B00;

    font-weight: 700;

    font-size: 0.72rem;

    flex-shrink: 0;

}



/* Form card */

.cp-form-card {

    background: white;

    border-radius: 24px;

    padding: 2.5rem;

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow: 0 4px 24px rgba(0,0,0,0.06);

    position: relative;

    overflow: hidden;

}



.cp-form-card::before {

    content: "";

    position: absolute;

    top: 0; left: 0; right: 0;

    height: 3px;

    background: linear-gradient(90deg, #FF6B00, #FF8C3A, #FF6B00);

    background-size: 200%;

    animation: gradShift 3s ease infinite;

}



.cp-form-card__head {

    margin-bottom: 2rem;

    padding-bottom: 1.5rem;

    border-bottom: 1px solid #f0f0f0;

}



.cp-form-card__head h2 {

    font-size: 1.4rem;

    font-weight: 900;

    color: #0A1628;

    letter-spacing: -0.02em;

    font-family: "Inter", sans-serif;

    margin-bottom: 0.4rem;

}



.cp-form-card__head p { font-size: 0.85rem; color: #888; }



.cp-messages { margin-bottom: 1.5rem; }



.cp-message {

    padding: 0.75rem 1rem;

    border-radius: 12px;

    font-size: 0.85rem;

    margin-bottom: 0.5rem;

}



.cp-message--success { background: rgba(34,197,94,0.1); color: #16a34a; }

.cp-message--error   { background: rgba(239,68,68,0.1); color: #dc2626; }



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



.cp-field { display: flex; flex-direction: column; gap: 0.5rem; }



.cp-field label {

    font-size: 0.72rem;

    font-weight: 700;

    color: #555;

    text-transform: uppercase;

    letter-spacing: 0.05em;

}



.cp-field__wrap { position: relative; }



.cp-field__icon {

    position: absolute;

    left: 14px; top: 50%;

    transform: translateY(-50%);

    font-size: 1rem;

    opacity: 0.45;

    pointer-events: none;

}



.cp-input {

    width: 100%;

    padding: 0.9rem 2.75rem 0.9rem 2.75rem;

    border: 1.5px solid #eee;

    border-radius: 14px;

    font-size: 0.9rem;

    font-family: inherit;

    background: #F8F9FB;

    color: #0A1628;

    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);

    outline: none;

}



.cp-input:focus {

    border-color: #FF6B00;

    background: white;

    box-shadow: 0 0 0 3px rgba(255,107,0,0.08);

}



.cp-field__eye {

    position: absolute;

    right: 12px; top: 50%;

    transform: translateY(-50%);

    background: transparent;

    border: none;

    cursor: pointer;

    font-size: 1rem;

    opacity: 0.4;

    min-height: unset;

    transition: opacity 0.2s ease;

}



.cp-field__eye:hover { opacity: 0.8; }



.cp-error {

    font-size: 0.72rem;

    color: #dc2626;

    padding-left: 0.25rem;

}



.cp-form__actions {

    display: flex;

    gap: 1rem;

    margin-top: 0.5rem;

}



.cp-btn {

    flex: 1;

    padding: 0.9rem;

    background: linear-gradient(135deg, #FF6B00, #FF8C3A);

    color: white;

    border: none;

    border-radius: 14px;

    font-size: 0.95rem;

    font-weight: 700;

    cursor: pointer;

    font-family: inherit;

    box-shadow: 0 6px 20px rgba(255,107,0,0.3);

    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);

}



.cp-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 28px rgba(255,107,0,0.4);

}



.cp-btn-cancel {

    padding: 0.9rem 1.5rem;

    background: transparent;

    border: 1.5px solid #e0e0e0;

    border-radius: 14px;

    color: #666;

    text-decoration: none;

    font-size: 0.88rem;

    font-weight: 600;

    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);

    text-align: center;

}



.cp-btn-cancel:hover { border-color: #FF6B00; color: #FF6B00; }



@media (max-width: 900px) {

    .cp-body__inner { grid-template-columns: 1fr; }

    .cp-security-card { position: static; }

}



@media (max-width: 768px) {

    .cp-hero { padding: 80px 1rem 3rem; }

    .cp-body { padding: 1.5rem 1rem 3rem; }

    .cp-form-card { padding: 1.5rem; }

    .cp-form__actions { flex-direction: column; }

}




.auth-glass__field-icon .lucide,

.auth-glass__field-icon {

    color: #FF6B00 !important;

}




.auth-glass__field-icon .lucide {

    filter: drop-shadow(0 0 6px rgba(255,107,0,0.5));

}




.auth-page__stats {

    bottom: 1.5rem !important;

    z-index: 5 !important;

}



.auth-glass {

    margin-bottom: 5rem !important;

}




.auth-glass {

    margin-top: 2rem !important;

    margin-bottom: 2rem !important;

}



.auth-page {

    padding-top: 68px !important;

    min-height: 100vh !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

}




/* ===== AUTH GLASS FIX ===== */

.auth-glass {

    background: rgba(255,255,255,0.25) !important;

    backdrop-filter: blur(24px) !important;

    -webkit-backdrop-filter: blur(24px) !important;

    border: 1px solid rgba(255,255,255,0.35) !important;

    box-shadow: 0 32px 80px rgba(8,28,51,0.25) !important;

}




/* ===== RESTORE ORIGINAL GLASS ===== */

.auth-glass {

    background: rgba(255,255,255,0.12) !important;

    backdrop-filter: blur(24px) !important;

    -webkit-backdrop-filter: blur(24px) !important;

    border: 1px solid rgba(255,255,255,0.25) !important;

    box-shadow: 0 32px 64px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3) !important;

}




/* ── Auth field icon fix ── */

.auth-glass__field { position: relative !important; }

.auth-glass__field-icon {

  position: absolute !important;

  left: 1rem !important;

  top: 50% !important;

  transform: translateY(-50%) !important;

  z-index: 3 !important;

  pointer-events: none !important;

  color: rgba(255,255,255,0.7) !important;

}

.auth-glass__input { padding-left: 3rem !important; }




/* ── Fix polish.css override ── */

.auth-glass__field .auth-glass__input {

  padding: 0.9rem 3rem 0.9rem 3rem !important;

}



/* mobile-readiness: input font-size >=16px (iOS no-zoom) */
.auth-glass__input,
.cp-input { font-size: 16px; }
