:root {
    --primary: #880500;
    --primary-dark: #6b0400;
    --text: #ffffff;
    --text-light: #aaaaaa;
    --bg-gradient-start: #0f0f0f;
    --bg-gradient-end: #1a0000;
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* ------------------ Gradient Background + Floating Orb ------------------ */
body {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

/* Animated Background Circle (same as first design) */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(136, 5, 0, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-50px) translateX(-50px); }
}

/* ------------------ Login / Signup Card (Glassmorphic) ------------------ */
.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 50px 40px;
    width: 500px;
    max-width: 95%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.login-card .logo {
    width: 180px;
    margin-bottom: 10px;
}

/* Titles */
.login-card .welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.login-card .subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
}

/* ------------------ Input Fields ------------------ */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.6);
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(136, 5, 0, 0.15);
    outline: none;
}

/* ------------------ Buttons ------------------ */
.login-btn,
.signup-btn {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: white;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.login-btn:hover,
.signup-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(136, 5, 0, 0.3);
}

/* ------------------ Divider ------------------ */
.divider {
    margin: 30px 0;
    position: relative;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.divider span {
    background: rgba(0,0,0,0.4);
    padding: 0 15px;
}

/* Signup button (bordered style like first design) */
.signup-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3) !important;
    margin-top: 20px;
}

.signup-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: white !important;
}

/* ------------------ Footer ------------------ */
.login-card .footer {
    margin-top: 40px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.login-card .footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.login-card .footer a:hover {
    text-decoration: underline;
}

/* ------------------ Contact Button (Glass style) ------------------ */
.contact-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s ease;
    z-index: 10;
}

.contact-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ------------------ Responsive ------------------ */
@media (max-width: 768px) {
    .login-card {
        width: 90%;
        padding: 40px 25px;
    }

    .login-card .welcome-title {
        font-size: 24px;
    }

    .contact-btn {
        top: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-card .welcome-title {
        font-size: 22px;
    }

    .input-group input,
    .login-btn,
    .signup-btn {
        padding: 14px;
        font-size: 15px;
    }
}