﻿/* Base Styles */
:root {
    --primary: #0528F2; /* Electric blue */
    --primary-light: #375dff; /* Lighter blue */
    --accent: #00e5ff; /* Cyan accent */
    --accent-alt: #7a18ff; /* Purple accent */
    --dark: #080A1A; /* Deep blue-black */
    --darker: #050715; /* Darker background */
    --panel: rgba(14, 17, 36, 0.8); /* Semi-transparent panel */
    --light-text: #F2F2FF; /* Off-white text */
    --muted-text: rgba(242, 242, 255, 0.7); /* Muted text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
    opacity: 0;
    animation: fadeInCursor 0.5s ease-in-out 0.5s forwards;
}

.custom-cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    animation: fadeInCursor 0.5s ease-in-out 0.5s forwards;
}

@keyframes fadeInCursor {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Modern Static Background */
.modern-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, var(--dark) 0%, var(--darker) 100%);
    overflow: hidden;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(5, 40, 242, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(5, 40, 242, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

.background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(5, 40, 242, 0.1) 0%, transparent 40%), radial-gradient(circle at 70% 70%, rgba(0, 229, 255, 0.1) 0%, transparent 40%), radial-gradient(circle at 20% 80%, rgba(122, 24, 255, 0.05) 0%, transparent 40%);
}

.background-accent {
    position: absolute;
    width: 100%;
    height: 100%;
}

    .background-accent::before {
        content: '';
        position: absolute;
        top: -5%;
        right: -5%;
        width: 20%;
        height: 20%;
        background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .background-accent::after {
        content: '';
        position: absolute;
        bottom: -5%;
        left: -5%;
        width: 25%;
        height: 25%;
        background: radial-gradient(circle, rgba(122, 24, 255, 0.05) 0%, transparent 70%);
        border-radius: 50%;
    }

/* Logo */
#logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

    #logo img {
        height: 40px;
        filter: drop-shadow(0 0 10px rgba(5, 40, 242, 0.5));
    }

/* Main Container */
#frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;        /* ← right after 100vh as progressive enhancement */
    padding: 20px;
    margin: 0 auto;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Card Styling */
.vr-card {
    position: relative;
    background-color: var(--panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--accent-alt) 100%);
}

/* Card Header */
.card-header {
    padding: 40px 40px 25px;
    text-align: center;
    position: relative;
}

.title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: transparent;
    background: linear-gradient(90deg, #00e5ff, #b3b3ff);
    -webkit-background-clip: text;
    background-clip: text;
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted-text);
    letter-spacing: 0.5px;
}

/* Card Body */
.card-body {
    padding: 0 40px 40px;
    text-align: center;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
    position: relative;
    text-align: left;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--light-text);
}

.input-field {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

    .input-field:focus {
        outline: none;
        border-color: var(--primary-light);
        background: rgba(255, 255, 255, 0.07);
        box-shadow: 0 0 10px rgba(5, 40, 242, 0.2);
    }

.input-icon {
    position: absolute;
    right: 15px;
    top: 45px;
    color: var(--muted-text);
}

/* Action Buttons */
.action {
    position: relative;
    border: none;
    outline: none;
    appearance: none;
    border-radius: 10px;
    padding: 18px 25px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
}

#reset-btn {
    background: #0528F2;
    color: white;
    height: 60px;
    box-shadow: 0 5px 20px rgba(5, 40, 242, 0.4);
    margin-bottom: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

    #reset-btn:hover, #reset-btn:focus {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(5, 40, 242, 0.6);
    }

#back-btn {
    background: rgba(23, 25, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    height: 50px;
    font-weight: 500;
}

    #back-btn:hover, #back-btn:focus {
        background: rgba(30, 32, 45, 0.9);
        border-color: rgba(5, 40, 242, 0.3);
        transform: translateY(-2px);
    }

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Success / Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 20px;
    display: none;
}

    .message.success {
        background-color: rgba(0, 229, 255, 0.1);
        border: 1px solid rgba(0, 229, 255, 0.3);
        color: var(--accent);
        display: block;
    }

    .message.error {
        background-color: rgba(255, 84, 84, 0.1);
        border: 1px solid rgba(255, 84, 84, 0.3);
        color: #ff5454;
        display: block;
    }

/* Loading Animation */
.loader {
    display: none;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-light);
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Text Link Styling */
.text-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .text-link:hover {
        color: var(--accent);
        text-decoration: underline;
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .card-header {
        padding: 30px 30px 20px;
    }

    .card-body {
        padding: 0 30px 30px;
    }

    #logo {
        top: 20px;
        left: 20px;
    }

        #logo img {
            height: 30px;
        }
}

@media (max-width: 480px) {
    .card-header {
        padding: 25px 20px 15px;
    }

    .card-body {
        padding: 0 20px 25px;
    }

    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    #reset-btn, #back-btn {
        height: 50px;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .input-label {
        font-size: 0.9rem;
    }

    .input-field {
        padding: 12px;
        font-size: 1rem;
    }
}
