/* ===========================
   SECURITY MODE - FRONTEND CSS
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.security-mode-body {
    background: #0f0f1e;
    position: relative;
}

.security-mode-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Background Animation */
.security-mode-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.1;
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
    50% {
        background: linear-gradient(135deg, #764ba2 0%, #f093fb 50%, #667eea 100%);
    }
}

/* Content */
.security-mode-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card - Square/Compact */
.security-mode-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.security-mode-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

.security-mode-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, transparent 0%, #764ba2 70%);
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

/* Header */
.security-mode-header {
    text-align: center;
    margin-bottom: 25px;
}

.security-icon-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 10px 50px rgba(102, 126, 234, 0.8);
    }
}

/* Message */
.security-message {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f0f0;
}

.message-text {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 500;
}

.message-text strong {
    color: #667eea;
    font-weight: 600;
}

.message-highlight {
    font-size: 12px;
    color: #764ba2;
    font-weight: 600;
    line-height: 1.6;
}

/* Error Message */
.security-error {
    background: #fee;
    border: 1px solid #fcc;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #dc3545;
    animation: slideInError 0.4s ease-out;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.security-error i {
    font-size: 14px;
    flex-shrink: 0;
}

.security-error span {
    font-weight: 500;
}

/* Form */
.security-login-form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.form-control {
    flex: 1;
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #999;
}

/* Login Button */
.btn-login {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    margin-top: 5px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-login:hover:not(:disabled)::before {
    left: 100%;
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Info Section */
.security-info {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
}

.info-text {
    font-size: 11px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.info-text i {
    color: #667eea;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer */
.security-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.footer-text {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .security-mode-card {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .security-icon-container {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
    
    .message-text {
        font-size: 12px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .form-label {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .btn-login {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .security-mode-card {
        background: rgba(30, 30, 50, 0.95);
        color: #e0e0e0;
    }
    
    .message-text {
        color: #bbb;
    }
    
    .form-control {
        background: #1a1a2e;
        border-color: #333;
        color: #e0e0e0;
    }
    
    .form-control:focus {
        background: #242440;
    }
    
    .security-info {
        background: rgba(102, 126, 234, 0.1);
    }
    
    .info-text {
        color: #bbb;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
