/* Local Plus Jakarta Sans Font Definitions (Stored in assets/fonts/) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/PlusJakartaSans-300-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/PlusJakartaSans-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/PlusJakartaSans-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/PlusJakartaSans-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/PlusJakartaSans-700-normal.woff2) format('woff2');
}

:root {
    --primary-glow: rgba(245, 158, 11, 0.1);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --title-gradient: linear-gradient(135deg, #4c1d95 0%, #b45309 100%);
    --text-dark: #0f172a;
    --text-muted: rgba(15, 23, 42, 0.55);
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fffdf5;
    background: radial-gradient(circle at center, #fffdf0 0%, #fef3c7 60%, #fafaf7 100%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    word-break: break-word;
}

/* Background Cosmic Nebulas (Pastel Vastu & Astrology energies) */
.nebula-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    animation: pulseNebula 15s infinite alternate ease-in-out;
}

.nebula-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, rgba(139, 92, 246, 0.12) 100%);
    top: -10%;
    left: -10%;
}

.nebula-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 230, 138, 0.35) 0%, rgba(251, 191, 36, 0.15) 100%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.nebula-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.25) 0%, rgba(56, 189, 248, 0.1) 100%);
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes pulseNebula {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        transform: translate(40px, 40px) scale(1.1) rotate(45deg);
    }
}

/* Spiritual Background Ornaments */
.spiritual-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mandala-wheel {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateWheel 25s infinite linear;
    transform-origin: center;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(217, 119, 6, 0.25));
}

.lotus-icon {
    position: absolute;
    width: 190px;
    height: 190px;
    opacity: 0.95;
    animation: breatheLotus 8s infinite alternate ease-in-out;
    transform-origin: center;
}

@keyframes rotateWheel {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes breatheLotus {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.18));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.4));
    }
}

@media (max-width: 768px) {
    .spiritual-background {
        width: 100vw;
        height: 100vw;
        max-width: 450px;
        max-height: 450px;
    }
    .lotus-icon {
        width: 140px;
        height: 140px;
    }
}

/* Floating Numerology Numbers */
.floating-number {
    position: absolute;
    font-family: 'Cinzel', serif, sans-serif;
    font-weight: 700;
    color: rgba(217, 119, 6, 0.45);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.12);
    pointer-events: none;
    user-select: none;
    animation: slowBlink 6s infinite ease-in-out;
    z-index: 1;
}

@keyframes slowBlink {
    0%, 100% {
        opacity: 0.1;
        transform: translateY(0) scale(0.9);
    }
    50% {
        opacity: 0.55;
        transform: translateY(-8px) scale(1.1);
    }
}

/* Container & Card */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    margin: auto;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    padding: 44px 36px;
    box-shadow: 
        0 10px 30px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 40px rgba(139, 92, 246, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.login-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 
        0 15px 40px rgba(15, 23, 42, 0.08),
        0 0 50px rgba(245, 158, 11, 0.06);
}

/* Logo & Headings */
.logo-box {
    margin-bottom: 28px;
}

.logo-img {
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.title {
    font-family: 'Cinzel', serif, sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 6px;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.06em;
}

.subtitle {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 36px;
}

/* User Type Switcher (Segmented Control) */
.user-type-selector {
    display: flex;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 28px;
    position: relative;
}

.user-type-selector input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    margin: 0;
}

.user-type-selector label {
    flex: 1;
    text-align: center;
    padding: 11px 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.user-type-selector label:hover {
    color: var(--text-dark);
}

.user-type-selector input[type="radio"]:checked + label {
    background: var(--gold-gradient);
    color: #111827;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* Input Fields */
.input-group {
    margin-bottom: 22px;
    text-align: left;
    position: relative;
}

.input-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 13.5px 16px 13.5px 44px;
    color: var(--text-dark);
    font-size: 14.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: rgba(15, 23, 42, 0.35);
}

.input-wrapper input:focus {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(15, 23, 42, 0.4);
    font-size: 15px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.input-wrapper input:focus + .input-icon {
    color: #f59e0b;
}

/* Submit Button */
.login-btn {
    width: 100%;
    background: var(--gold-gradient);
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: #111827;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    outline: none;
    margin-top: 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
    filter: brightness(1.04);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.login-btn i {
    font-size: 14px;
}

/* Error message styling */
.error-box {
    margin-top: 20px;
    min-height: 24px;
}

.error-box red, 
.error-box #error {
    display: inline-block;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #991b1b !important;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.03);
}

.error-box b {
    font-weight: normal;
}

/* Footer / Registration Link */
.card-footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 13.5px;
    color: var(--text-muted);
}

.register-link {
    color: #b45309;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.register-link:hover {
    color: #d97706;
    text-shadow: 0 0 8px rgba(217, 119, 6, 0.2);
    text-decoration: underline;
}

.forgot-link:hover {
    color: #d97706;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .input-wrapper input {
        font-size: 16px !important; /* Prevents auto-zoom on mobile inputs */
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 12px;
    }
    .login-card {
        padding: 28px 18px;
        border-radius: 18px;
    }
    .user-type-selector label {
        padding: 10px 6px;
        font-size: 13px;
    }
    .input-wrapper input {
        padding: 12px 14px 12px 40px;
    }
    .login-btn {
        padding: 13px;
        font-size: 15px;
    }
}
