:root {
    --bg-dark: #0a0a0a;
    --text-primary: #e0e0e0;
    --text-secondary: #8c8c8c;
    --metallic-dark: #1f1f1f;
    --metallic-light: #525252;
    --metallic-highlight: #a8a8a8;
    --primary-font: 'Montserrat', sans-serif;
    --heading-font: 'Cinzel', serif;
    --error-color: #cf6679;
    --success-color: #b59f5b;
    /* A bit of brushed gold for success */
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--primary-font);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background dark metallic radial gradient */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, #2a2a2a 0%, #0a0a0a 60%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    background-image: url('logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

.logo-text {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    background: linear-gradient(to right, #cfcfcf 0%, #ffffff 50%, #8c8c8c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 300;
    text-transform: uppercase;
}

/* Metallic Card Styling */
.metallic-card {
    background: linear-gradient(145deg, #181818, #0e0e0e);
    border-radius: 4px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid #2a2a2a;
    overflow: hidden;
}

.metallic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-20deg);
    animation: shimmer 8s infinite;
}

.form-title {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--primary-font);
    outline: none;
}

.form-group input::placeholder {
    color: #4a4a4a;
}

/* Animated input line */
.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #333;
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #4a4a4a, #a8a8a8, #4a4a4a);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.form-group input:focus~.input-line::after {
    width: 100%;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    color: var(--metallic-highlight);
}

.invite-input {
    letter-spacing: 2px;
    font-family: monospace;
}

/* Interactive Metallic Button */
.metallic-button {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-family: var(--primary-font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 5px 15px rgba(0, 0, 0, 0.5);
}

.metallic-button:hover {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    border-color: #555;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: 1;
}

.metallic-button:hover .button-shine {
    left: 150%;
}

.metallic-button:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Success Message */
.success-message,
.error-message {
    text-align: center;
    padding: 20px 0;
}

.success-message.hidden,
.error-message.hidden {
    display: none;
}

.success-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(181, 159, 91, 0.3);
}

.error-icon {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(207, 102, 121, 0.3);
}

.success-message h3,
.error-message h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p,
.error-message p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 10px rgba(168, 168, 168, 0.1);
    }

    to {
        box-shadow: 0 0 25px rgba(168, 168, 168, 0.3);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    .metallic-card {
        padding: 30px 20px;
    }

    .logo-text {
        font-size: 2rem;
        letter-spacing: 5px;
    }
}