/* Modern Professional Styles for SafeBank Login Page */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f0f9ff;
    --accent-color: #0284c7;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --hover-color: #dbeafe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 120px;
    margin-bottom: 20px;
}

.login-container {
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.login-header .logo i {
    color: #2563eb;
    font-size: 40px;
    margin-right: 10px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
}

.login-header p {
    color: #6b7280;
    font-size: 16px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.input-wrapper .input-icon i {
    transition: color 0.3s ease;
}

.input-wrapper input.valid + .input-icon i {
    color: #22c55e;
}

.input-wrapper input.invalid + .input-icon i {
    color: #ef4444;
}

.password-wrapper .password-toggle {
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1d4ed8;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}

.login-button:hover:not(:disabled) {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
}

.signup-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #1d4ed8;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    background-color: #f9fafb;
    padding: 15px;
    border-top: 1px solid #e5e7eb;
}

.security-info, .support-info {
    display: flex;
    align-items: center;
    color: #6b7280;
}

.security-info i, .support-info i {
    margin-right: 8px;
    color: #2563eb;
}

/* Captcha Styling */
.captcha-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.captcha-math {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

#captcha-input {
    flex-grow: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

#captcha-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#captcha-input.error {
    border-color: #ef4444;
    background-color: #fff0f0;
    animation: shake 0.5s ease-in-out;
}

#captcha-input.success {
    border-color: #22c55e;
    background-color: #f0fff4;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Navigation */
nav {
    background-color: white;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 100;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo i {
    color: #2563eb;
    font-size: 2.2rem;
}

nav .logo h1 {
    font-size: 2rem;
    margin: 0;
    color: #333;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a i {
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

/* Top Banner */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --secondary-color: #f3f4f6;
}

.top-banner {
    background: linear-gradient(to right, var(--primary-dark), var(--accent-color));
    color: var(--text-primary);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.top-banner i {
    margin-right: 0.3rem;
}
