/* ==========================================================================
   PlusiMax Corporate Authentication Styles (Login, Register, Forgot Password)
   ========================================================================== */

:root {
    --pm-primary: #3E1E68;
    --pm-secondary: #5D2F77;
    --pm-accent: #E45A92;
    --pm-accent-hover: #ff6ea7;
    --pm-bg-dark: #0a0314;
    --pm-card-bg: rgba(18, 10, 34, 0.92);
    --pm-border: rgba(228, 90, 146, 0.25);
    --pm-input-bg: rgba(10, 4, 20, 0.75);
    --pm-input-border: rgba(255, 255, 255, 0.12);
    --pm-text: #f8fafc;
    --pm-muted: rgba(255, 255, 255, 0.65);
}

body.auth-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at 18% 22%, rgba(228, 90, 146, 0.22) 0%, transparent 45%),
                radial-gradient(circle at 82% 78%, rgba(62, 30, 104, 0.55) 0%, transparent 55%),
                linear-gradient(135deg, #090214 0%, #150628 40%, #230843 75%, #3E1E68 100%);
    color: var(--pm-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    overflow-x: hidden;
}

/* Modern Gemini Tech Pattern Overlay (Slow Diagonal Drift) */
.auth-grid-overlay {
    position: fixed;
    inset: 0;
    background-image: url('../img/pricing-tech-pattern.png');
    background-repeat: repeat;
    background-size: 512px 512px;
    background-position: 0 0;
    opacity: 0.12;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 25%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 25%, transparent 90%);
    animation: authPatternDiagonal 45s linear infinite;
    will-change: background-position;
    pointer-events: none;
    z-index: 0;
}

@keyframes authPatternDiagonal {
    0% { background-position: 0 0; }
    100% { background-position: 512px 512px; }
}

/* Ambient Glow Orbs */
.auth-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: authBlobPulse 9s ease-in-out infinite alternate;
}
.auth-blob-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(228, 90, 146, 0.28) 0%, transparent 70%);
    top: -120px;
    right: -100px;
}
.auth-blob-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(93, 47, 119, 0.45) 0%, transparent 70%);
    bottom: -150px;
    left: -120px;
    animation-delay: -4.5s;
}

@keyframes authBlobPulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.65; }
    50% { transform: scale(1.1) translate(15px, -15px); opacity: 0.95; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.65; }
}

/* Auth Card */
.auth-card {
    background: var(--pm-card-bg);
    border: 1.5px solid var(--pm-border);
    border-radius: 1.5rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(228, 90, 146, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 100%;
    max-width: 460px;
    padding: 2.5rem 2.25rem;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.3s ease;
}

.auth-card-wide {
    max-width: 520px;
}

/* Form Controls */
.form-control {
    background-color: var(--pm-input-bg) !important;
    border: 1px solid var(--pm-input-border) !important;
    color: #ffffff !important;
    height: calc(1.5em + 1.25rem + 2px);
    border-radius: 0.65rem;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    transition: all 0.25s ease;
}

.form-control:focus {
    background-color: rgba(14, 6, 28, 0.95) !important;
    border-color: var(--pm-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(228, 90, 146, 0.25) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Gradient Primary Button */
.btn-pm-primary {
    background: linear-gradient(135deg, #3E1E68 0%, #E45A92 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.8rem 1.25rem !important;
    border-radius: 0.65rem !important;
    font-size: 1rem !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 10px 25px rgba(228, 90, 146, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none !important;
}

.btn-pm-primary:hover {
    background: linear-gradient(135deg, #5D2F77 0%, #E45A92 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(228, 90, 146, 0.6), 0 0 20px rgba(228, 90, 146, 0.3) !important;
    color: #ffffff !important;
}

/* Google Sign-in Button */
.btn-google {
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    border-radius: 0.65rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    width: 100%;
}

.btn-google:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.2) !important;
}

/* Separator / Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider:not(:empty)::before {
    margin-right: 0.85em;
}

.auth-divider:not(:empty)::after {
    margin-left: 0.85em;
}

/* Language selector */
.lang-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0.45rem;
    padding: 0.3rem 0.6rem;
    transition: all 0.2s ease;
}

.lang-select:focus,
.lang-select:hover {
    border-color: var(--pm-accent);
    color: #fff;
    outline: none;
}

.lang-select option {
    background-color: #17072c;
    color: #fff;
}

/* Links & Accents */
.text-pm-accent {
    color: var(--pm-accent) !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.text-pm-accent:hover {
    color: var(--pm-accent-hover) !important;
    text-decoration: underline !important;
}

/* Checkbox styling */
.custom-control-label::before {
    background-color: var(--pm-input-bg) !important;
    border: 1px solid var(--pm-input-border) !important;
    border-radius: 4px;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--pm-accent) !important;
    border-color: var(--pm-accent) !important;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(228, 90, 146, 0.3) !important;
}

/* Legal Notice Box */
.auth-legal-notice {
    background: rgba(228, 90, 146, 0.08);
    border-left: 3px solid var(--pm-accent);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

/* Modal / Card Header Gradient with Floating Wave Lines */
.modal-header-gradient {
    background: linear-gradient(135deg, #301455 0%, #753f94 100%) !important;
    color: #fff !important;
    position: relative;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem 1rem !important;
    border-bottom: 1px solid rgba(228, 90, 146, 0.25) !important;
}
.modal-header-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}
.modal-header-gradient .modal-title,
.modal-header-gradient .btn-close {
    position: relative;
    z-index: 2;
}
.modal-header-gradient .modal-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Dark Theme Auth Card Captcha Styling */
.auth-card .pm-captcha-group {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin-bottom: 0 !important;
}
.auth-card .pm-captcha-group label {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    display: block;
}
.auth-card .pm-captcha-group label .pm-captcha-title,
.auth-card .pm-captcha-group label i {
    color: rgba(255, 255, 255, 0.75) !important;
}
.auth-card .pm-captcha-group .input-group {
    display: flex;
    align-items: stretch;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
.auth-card .pm-captcha-group .input-group-prepend,
.auth-card .pm-captcha-group .input-group-append {
    display: flex;
}
.auth-card .pm-captcha-group .pm-captcha-question {
    background: rgba(62, 30, 104, 0.75) !important;
    color: #f472b6 !important;
    border: none !important;
    border-right: 1px solid rgba(228, 90, 146, 0.35) !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    padding: 0.55rem 0.85rem;
    display: flex;
    align-items: center;
    border-radius: 0 !important;
}
.auth-card .pm-captcha-group .pm-captcha-input {
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.auth-card .pm-captcha-group .pm-captcha-input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}
.auth-card .pm-captcha-group .pm-captcha-input:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.auth-card .pm-captcha-group .pm-captcha-refresh {
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    transition: all 0.2s ease;
    padding: 0.55rem 0.85rem;
    border-radius: 0 !important;
}
.auth-card .pm-captcha-group .pm-captcha-refresh:hover {
    background: rgba(228, 90, 146, 0.35) !important;
    color: #ffffff !important;
}
