/* Login Page Styles */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 15px;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

.login-body {
    margin-bottom: 25px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    gap: 8px;
}

.input-icon {
    width: 18px;
    height: 18px;
    color: #dc2626;
    flex-shrink: 0;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f7fafc;
    color: #2d3748;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #dc2626;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-group.focused .form-label {
    color: #dc2626;
}

.form-group.focused .input-icon {
    color: #dc2626;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #dc2626;
}

.password-toggle.active {
    color: #dc2626;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.validation-message {
    display: block;
    font-size: 13px;
    margin-top: 6px;
    color: #e53e3e;
    font-weight: 500;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc2626;
}

.form-check-label {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.forgot-password-link {
    font-size: 14px;
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text {
    display: inline-block;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    color: white;
}

.login-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.register-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fed7d7;
    border: 1px solid #fc8181;
    color: #c53030;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-container {
        padding: 15px;
    }

    .login-card {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .login-title {
        font-size: 24px;
    }

    .logo-container {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-password-link {
        width: 100%;
    }
}

/* Animation for input fields */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-control.input-error {
    animation: shake 0.3s ease;
    border-color: #e53e3e;
}

/* Loading state */
.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading .btn-loader {
    display: flex;
}

