/* Auth Page Specifics - moved from style.css */
body.auth-page {
    background-image: url('../img/auth-bg.png');
    background-position: top center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #000;
    display: flex;
    flex-direction: column;
}

.auth-overlay {
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.8) 0%, rgba(20, 0, 0, 0.9) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.auth-container.center-content {
    justify-content: center;
}

.auth-container.top-content {
    justify-content: flex-start;
    padding-top: 50px;
}

.auth-header-title {
    text-align: center;
    font-size: 4rem;
    margin-top: 60px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, #cfcfcf, #ffffff, #cfcfcf);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.auth-header-subtitle {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-top: -30px;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Faction Selection for Register */
.faction-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.faction-card-wrapper {
    position: relative;
    width: 350px;
}

.faction-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.faction-display {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faction-display i {
    font-size: 3rem;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.faction-display h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.faction-display p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.faction-features {
    text-align: left;
    list-style: none;
    font-size: 0.85rem;
    color: #ccc;
    width: 100%;
    margin-top: auto;
}

.faction-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.faction-features li::before {
    content: '+';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Selection State */
.faction-input:checked+.faction-display {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* Vampire Specifics */
.faction-vampire .faction-display {
    border-top: 3px solid transparent;
}

.faction-vampire .faction-input:checked+.faction-display {
    border-color: var(--color-vampire);
    box-shadow: 0 0 20px rgba(138, 3, 3, 0.4);
}

.faction-vampire i {
    color: var(--color-vampire);
}

.faction-vampire h3 {
    color: var(--color-vampire);
}

/* Werewolf Specifics */
.faction-werewolf .faction-display {
    border-top: 3px solid transparent;
}

.faction-werewolf .faction-input:checked+.faction-display {
    border-color: var(--color-werewolf);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.faction-werewolf i {
    color: var(--color-werewolf);
}

.faction-werewolf h3 {
    color: var(--color-werewolf);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-header-title {
        font-size: 2.5rem;
    }

    .faction-container {
        flex-direction: column;
        align-items: center;
    }

    .faction-card-wrapper {
        width: 100%;
        max-width: 350px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.auth-header-title {
    animation: fadeInUp 0.8s ease-out;
}

.auth-header-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.auth-card {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    border-top: 3px solid var(--color-blood);
    /* Override border for auth card specifically */
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* Hover effect on auth card inputs */
.auth-card .form-control:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-card .form-control:focus {
    border-color: var(--color-blood);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}