:root {
    --brand-primary: #d02f34;
    --brand-secondary: #834240;
    --brand-white: #ffffff;
}

/* Animated brand gradient for hero */
.welcome-hero {
    background: linear-gradient(
        135deg,
        var(--brand-primary) 0%,
        var(--brand-secondary) 100%
    );
    background-size: 200% 200%;
    animation: gradient-pan 8s ease infinite;
    border-radius: 1rem;
}

@keyframes gradient-pan {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.welcome-title {
    color: var(--brand-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.welcome-subtitle {
    color: #f1f5f9;
}

.welcome-logo {
    max-width: 220px;
    height: auto;
}

.account-type-badge {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Cards */
.card-option {
    position: relative;
    overflow: hidden;
    background: #fff;
    /* border: 0; */
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-option:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 1.25rem 2.25rem rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

/* Gradient overlay on hover */
.card-option::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.3s ease, transform 0.3s ease,
    background-position 0.6s ease;
    background-size: 200% 200%;
}

.card-option:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: gradient-pan 6s ease infinite;
}

/* Role-specific hover accents */
.card-option.student::before {
    background: linear-gradient(
        135deg,
        rgba(208, 47, 52, 0.22) 0%,
        rgba(131, 66, 64, 0.12) 100%
    );
}

.card-option.staff::before {
    background: linear-gradient(
        135deg,
        rgba(131, 66, 64, 0.22) 0%,
        rgba(208, 47, 52, 0.12) 100%
    );
}

/* Icon styles */
.option-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.option-icon-student {
    background: var(--brand-primary);
    color: #fff;
}

.option-icon-staff {
    background: var(--brand-secondary);
    color: #fff;
}

.role-title {
    font-weight: 700;
    color: #1f2937;
}

/* Brand button */
.btn-brand {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.btn-brand:hover {
    background: #b6282d;
    border-color: #b6282d;
    color: #fff;
}

.btn-brand:focus {
    box-shadow: 0 0 0 0.25rem rgba(208, 47, 52, 0.25);
}

/* Fix modal stacking above backdrop and headers */
.modal {
    z-index: 20000 !important;
}

.modal-backdrop {
    z-index: 19990 !important;
}

footer {
    background-color: transparent;
}
