/* Login Modal Styles - Nordersun v6.2 */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 20px;
}
.login-modal-overlay.active { display: flex; }

.login-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}
.login-modal-close:hover { background: #e5e7eb; color: #1f2937; }

.login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 16px;
}
.login-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.login-modal-header p {
    font-size: 14px;
    color: #6b7280;
}

.login-form { margin-bottom: 24px; }
.login-input-group { margin-bottom: 16px; }
.login-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}
.login-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    outline: none;
}
.login-input-group input:focus {
    border-color: #0071dc;
    box-shadow: 0 0 0 3px rgba(0, 113, 220, 0.1);
}

.login-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.login-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0071dc, #004f9a);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.login-submit-btn:hover { box-shadow: 0 4px 15px rgba(0, 113, 220, 0.4); transform: translateY(-1px); }
.login-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.login-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.login-footer p {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}
.login-footer span {
    font-size: 13px;
    color: #6b7280;
}

/* OTP Input - v6.2.001 */
#otpInput {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
}

/* OTP Timer - v6.2.001 */
.otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #0369a1;
    font-weight: 500;
}
.otp-timer i {
    font-size: 16px;
}

/* OTP Resend - v6.2.001 */
.otp-resend {
    margin-top: 16px;
    text-align: center;
}
.resend-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.resend-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}
.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* OTP Back Button - v6.2.001 */
.otp-back {
    margin-top: 12px;
    text-align: center;
}
.back-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.back-btn:hover {
    color: #374151;
}

/* Login button in header */
.login-btn {
    background: transparent;
    border: 2px solid #0071dc;
    color: #0071dc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-btn:hover { background: #0071dc; color: white; }
