/* static/security/css/security.css */
.security-page {
    background-color: var(--theme-background);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--theme-background);
    position: relative;
}

.security-box {
    background-color: var(--theme-surface);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    transition: transform 0.3s ease;
}

.security-box:hover {
    transform: translateY(-5px);
}

.security-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    background-color: var(--theme-background);
    border: 1px solid var(--theme-text-muted);
    color: var(--theme-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 2px rgba(140, 36, 196, 0.2);
    background-color: var(--theme-background);
    color: var(--theme-text);
}

.btn-primary {
    background-color: var(--theme-accent);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--theme-secondary);
    transform: translateY(-2px);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--theme-accent);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--theme-secondary);
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
}

.alert {
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: var(--theme-green);
    color: var(--theme-background);
}

.alert-danger {
    background-color: var(--theme-red);
    color: var(--theme-background);
}

.alert-info {
    background-color: var(--theme-cyan);
    color: var(--theme-background);
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    background-color: var(--theme-background);
    border-color: var(--theme-text-muted);
}

.form-check-input:checked {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.error-message {
    color: var(--theme-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .security-box {
        padding: 1.5rem;
    }
}

/* Login Modal Styles */
.security-modal .modal-content,
.login-modal .modal-content {
    background-color: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-accent);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.security-modal .modal-content .form-control,
.login-modal .modal-content .form-control,
.security-modal .modal-content .custom-select,
.login-modal .modal-content .custom-select {
    background-color: var(--theme-background);
    border: 1px solid rgba(140, 36, 196, 0.2);
    color: var(--theme-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.security-modal .modal-content .form-control:focus,
.login-modal .modal-content .form-control:focus,
.security-modal .modal-content .custom-select:focus,
.login-modal .modal-content .custom-select:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 2px rgba(140, 36, 196, 0.2);
}

.security-modal .modal-header,
.login-modal .modal-header {
    background: linear-gradient(145deg, var(--theme-accent), var(--theme-secondary));
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.security-modal .modal-title,
.login-modal .modal-title {
    color: var(--theme-background);
    font-weight: 600;
    font-size: 1.25rem;
}

.security-modal .modal-body,
.login-modal .modal-body {
    padding: 1.5rem;
}

.security-modal .modal-footer,
.login-modal .modal-footer {
    border-top: 1px solid rgba(140, 36, 196, 0.2);
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 15px 15px;
}

/* Form specific styles */
.security-modal .form-label,
.login-modal .form-label {
    color: var(--theme-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.security-modal .btn-primary,
.login-modal .btn-primary {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-purple));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.security-modal .btn-primary:hover,
.login-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 36, 196, 0.3);
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.security-modal.show .modal-content,
.login-modal.show .modal-content {
    animation: slideIn 0.3s ease forwards;
}
