/* ====================================
   PASSWORD MODAL STYLES
   ==================================== */

.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-box {
    position: relative;
    background: linear-gradient(135deg, #0a1428 0%, #1a1a2e 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #8d3df6, #24d0f5) 1;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(141, 61, 246, 0.3),
                0 0 40px rgba(36, 208, 245, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, rgba(141, 61, 246, 0.1), rgba(36, 208, 245, 0.1));
    padding: 30px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(141, 61, 246, 0.2);
}

.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #8d3df6, #24d0f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 8px 20px rgba(141, 61, 246, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(141, 61, 246, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(141, 61, 246, 0.6); }
}

.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #8d3df6, #24d0f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #ff4757;
    transform: rotate(90deg);
}

.modal-form {
    padding: 30px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    color: var(--light-gray);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-field label i {
    color: var(--ktnh-cyan);
    margin-right: 8px;
}

.form-field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(141, 61, 246, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: 'Barlow', sans-serif;
    transition: all 0.3s;
}

.form-field input:focus {
    outline: none;
    border-color: var(--ktnh-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(36, 208, 245, 0.2);
}

.password-msg {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 20px;
}

.modal-btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8d3df6, #24d0f5);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(141, 61, 246, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(141, 61, 246, 0.5);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.logout-link {
    color: #ff4757;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 6px;
}

.logout-link:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff6b7a;
}

.logout-link i {
    font-size: 16px;
}
