/* Login & register — background image + glass UI */

.auth-page,
.auth-page * {
    box-sizing: border-box;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #1F2933;
    line-height: 1.5;
    background: #0f172a url('../../../bg_images/replug.png') center center / cover no-repeat fixed;
}

.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        160deg,
        rgba(15, 23, 42, 0.78) 0%,
        rgba(30, 58, 95, 0.62) 45%,
        rgba(15, 23, 42, 0.72) 100%
    );
    pointer-events: none;
}

.auth-page > * {
    position: relative;
    z-index: 1;
}

.auth-page a {
    color: #1E88E5;
    text-decoration: none;
}

.auth-page a:hover {
    color: #1565C0;
}

/* Frosted header */
.auth-header {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.auth-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.auth-header-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: #fff;
}

.auth-header-logo:hover {
    color: #fff;
    opacity: 0.95;
}

.auth-header-logo img {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.auth-header-logo span {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.auth-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-header-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.auth-header-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.auth-header-nav .btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    margin-left: 0.5rem;
    text-decoration: none;
}

.auth-header-nav .btn-primary {
    background: #1E88E5;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-header-nav .btn-primary:hover {
    background: #1565C0;
    color: #fff;
}

/* Main + glass card */
.auth-main {
    flex: 1;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2rem 2.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2933;
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    font-size: 14px;
    color: #4B5563;
    margin-bottom: 1.5rem;
}

.auth-card .subtitle a {
    font-weight: 500;
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1F2933;
    margin-bottom: 0.375rem;
}

.auth-form-group input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1F2933;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.auth-form-group input::placeholder {
    color: #6B7280;
}

.auth-form-group .hint {
    font-size: 12px;
    color: #6B7280;
    margin-top: 0.25rem;
}

.auth-btn-submit {
    width: 100%;
    height: 46px;
    margin-top: 0.5rem;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #1E88E5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.35);
}

.auth-btn-submit:hover {
    background: #1565C0;
}

.auth-btn-submit:active {
    transform: scale(0.99);
}

.auth-error-msg {
    padding: 10px 12px;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #B71C1C;
    background: rgba(255, 235, 238, 0.95);
    border: 1px solid rgba(229, 115, 115, 0.4);
    border-radius: 8px;
}

.auth-info-msg {
    padding: 10px 12px;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #0D47A1;
    background: rgba(227, 242, 253, 0.95);
    border: 1px solid rgba(100, 181, 246, 0.45);
    border-radius: 8px;
}

.auth-form-footer-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 14px;
    color: #4B5563;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-header-inner {
        min-height: 64px;
    }

    .auth-header-logo span {
        font-size: 1.15rem;
    }
}
