/**
 * Lucky Vault Card - Authentication Pages Styles
 * Login & Signup
 */

:root {
    --color-primary: #6c5ce7;
    --color-secondary: #a29bfe;
    --color-accent: #00cec9;
    --color-light: #ffffff;
    --color-dark: #1a1a2e;
    --color-warning: #ff4c4c;
    --color-success: #27C827;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-purple: #9d00ff;
    --neon-gold: #ffcc00;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--color-light);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

/* Marquee Warning */
.marquee {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
    padding: 0.6rem 1rem;
    color: var(--color-dark);
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 0 20px var(--neon-pink);
}

.marquee p {
    margin: 0;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes scroll-left {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.flicker {
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 4rem 1rem 2rem;
    position: relative;
    z-index: 1;
}

/* Auth Box */
.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-box {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple), var(--neon-gold));
    z-index: -1;
    border-radius: 22px;
    animation: neon-border 4s linear infinite;
    opacity: 0.7;
}

@keyframes neon-border {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Logo */
.logo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--neon-gold);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-title {
    color: var(--neon-gold);
    font-size: 2rem;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 15px var(--neon-gold);
    letter-spacing: 4px;
    font-weight: 700;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.input-group input {
    padding: 1rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-light);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Button */
.button-container {
    margin-top: 0.5rem;
}

.btn-submit {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.5);
}

/* Messages */
.msg-error, .msg-success {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.msg-error {
    background: rgba(255, 76, 76, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff4c4c;
    box-shadow: 0 0 15px rgba(255, 76, 76, 0.3);
}

.msg-success {
    background: rgba(39, 200, 39, 0.2);
    color: #4cff4c;
    border: 1px solid #27C827;
    box-shadow: 0 0 15px rgba(39, 200, 39, 0.3);
}

.username-display {
    display: block;
    font-size: 1.8rem;
    color: var(--neon-gold);
    margin-top: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-gold);
    cursor: pointer;
    user-select: all;
}

.warning-note {
    background: rgba(255, 204, 0, 0.2);
    border: 1px solid var(--neon-gold);
    color: var(--neon-gold);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.6); }
}

/* Password Generator */
.password-generator {
    margin-top: 0.5rem;
}

.generate-btn {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.generated-password {
    display: none;
    margin-top: 0.8rem;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--neon-blue);
    cursor: pointer;
    word-break: break-all;
    text-align: center;
    transition: all 0.3s ease;
}

.generated-password:hover {
    background: rgba(0, 255, 255, 0.2);
}

/* Password Strength */
.password-strength {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-weak { width: 25%; background: #ff4c4c; }
.strength-medium { width: 50%; background: #ffcc00; }
.strength-strong { width: 75%; background: #00cec9; }
.strength-very-strong { width: 100%; background: #27C827; }

.password-requirements {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Links */
.auth-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.auth-link a {
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-link a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--neon-blue);
}
