:root {
    --primary-color: #565a5e;
    --primary-dark: #3d4043;
    --primary-light: #6e7377;
    --accent-color: #4a90e2;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body.security-page {
    background: linear-gradient(135deg, #565a5e 0%, #3d4043 25%, #6e7377 50%, #565a5e 75%, #3d4043 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    position: relative;
}

body.security-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(86, 90, 94, 0.2) 0%, rgba(61, 64, 67, 0.15) 50%, rgba(110, 115, 119, 0.2) 100%);
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.security-container {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
    will-change: transform;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.security-card {
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    will-change: auto;
}

.security-card:hover {
    box-shadow: var(--shadow-hover);
}

.security-header {
    background: linear-gradient(135deg, #565a5e 0%, #3d4043 50%, #6e7377 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.security-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.security-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 0%, 
        transparent 25%, 
        rgba(255,255,255,0.05) 50%, 
        transparent 75%, 
        rgba(255,255,255,0.1) 100%);
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.security-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 26px;
    position: relative;
    z-index: 1;
}

.security-header i {
    font-size: 56px;
    margin-bottom: 15px;
    display: block;
    position: relative;
    z-index: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

.security-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    display: block;
    position: relative;
    z-index: 1;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.security-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.security-body {
    padding: 40px;
    min-height: 200px;
}

.form-label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 14px 18px;
    transition: all 0.3s ease;
    font-size: 15px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
    box-shadow: 0 0 0 0.2rem rgba(86, 90, 94, 0.15), 
                0 4px 12px rgba(86, 90, 94, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.input-group-icon {
    position: relative;
}

.input-group-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    z-index: 10;
    font-size: 18px;
}

.input-group-icon input {
    padding-left: 50px;
}

.btn-primary {
    background: linear-gradient(135deg, #565a5e 0%, #3d4043 50%, #565a5e 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(86, 90, 94, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3d4043 0%, #565a5e 50%, #3d4043 100%);
    background-size: 200% 200%;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 90, 94, 0.4);
}

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

.btn-sm-text {
    font-size: 13px !important;
    padding: 12px 14px;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.link-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.link-custom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease;
}

.link-custom:hover {
    -webkit-text-fill-color: var(--primary-dark);
    transform: translateX(3px);
}

.link-custom:hover::after {
    width: 100%;
}

.info-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.password-requirements {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Responsive */
@media (max-width: 576px) {
    .security-container {
        max-width: 100%;
    }
    
    .security-body {
        padding: 30px 20px;
    }
    
    .security-header {
        padding: 30px 20px;
    }
    
    .security-header h2 {
        font-size: 22px;
    }
    
    .security-header i {
        font-size: 48px;
    }
}

