/* ==================== Modern Login Screen Styles ==================== */

.login-panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.login-logo-container {
    margin-bottom: 16px;
}

.login-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Smooth animation for player name field */
#playerName-container {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease 0.1s,
        transform 0.3s ease 0.1s;
}

#playerName-container[style*="display: block"] {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.login-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-label i {
    font-size: 16px;
    color: #60a5fa;
}

/* Role Tabs */
.role-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 10px;
    align-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: -webkit-center;
    gap: 10px;
}

.role-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-tab:hover::before {
    opacity: 1;
}

.role-tab i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.role-tab span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.role-tab small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.role-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.role-tab:hover i {
    color: #60a5fa;
    transform: scale(1.1);
}

.role-tab.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.role-tab.active i {
    color: #60a5fa;
    transform: scale(1.1);
}

.role-tab.active span {
    color: white;
}

.role-tab.active small {
    color: rgba(255, 255, 255, 0.7);
}

/* Input Fields */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .login-input {
    flex: 1;
    padding-right: 50px;
}

.input-icon-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    /* padding: 8px 12px; */
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    color: #60a5fa;
    transform: scale(1.05);
}

.input-icon-btn:active {
    transform: scale(0.95);
}

.input-icon-btn i {
    font-size: 16px;
}

.login-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

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

.login-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Remember Me Checkbox */
.remember-me-group {
    margin: 0;
    padding: 0;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 8px 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.remember-me-label:hover {
    background: rgba(255, 255, 255, 0.03);
}

.remember-me-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.remember-me-checkbox:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.remember-me-checkbox:checked {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    border-color: #60a5fa;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}

.remember-me-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
    animation: checkmark 0.3s ease forwards;
}

@keyframes checkmark {
    0% {
        transform: translate(-50%, -60%) rotate(45deg) scale(0);
    }

    100% {
        transform: translate(-50%, -60%) rotate(45deg) scale(1);
    }
}

.remember-me-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.remember-me-label:hover .remember-me-text {
    color: rgba(255, 255, 255, 0.95);
}

.remember-me-text i {
    font-size: 14px;
    color: #60a5fa;
    transition: transform 0.3s ease;
}

.remember-me-checkbox:checked~.remember-me-text i {
    transform: scale(1.1);
}


.login-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.login-btn:active {
    transform: translateY(0);
}

/* Fade In Animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}