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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    background-color: #f3f4f6;
}

.min-h-screen {
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 50;
}

.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo a {
    color: #e11d48;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-logo a:hover {
    color: #be123c;
}

/* Login Container Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    padding-top: 5rem;
}

/* Login Type Selection */
.login-type-selection {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.login-type-selection h1 {
    color: #111827;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.login-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e11d48;
    border-radius: 0.5rem;
    color: #e11d48;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-option-btn:hover {
    background: #e11d48;
    color: #ffffff;
    transform: translateY(-2px);
}

.login-option-btn svg {
    transition: transform 0.2s;
}

.login-option-btn:hover svg {
    transform: scale(1.1);
}

/* Login Card Styles */
.login-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.admin-login {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
}

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

.back-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.back-button:hover {
    color: #e11d48;
    background: #fee2e2;
}

.login-card h1 {
    color: #111827;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #374151;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.input-wrapper input.error {
    border-color: #dc2626;
}

.input-icon {
    position: absolute;
    right: 1rem;
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #6b7280;
}

.hidden {
    display: none;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

/* Checkbox Styles */
.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background-color: #e11d48;
    border-color: #e11d48;
}

.checkbox-label {
    color: #374151;
    font-size: 0.875rem;
}

.forgot-password {
    color: #e11d48;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #be123c;
    text-decoration: underline;
}

/* Button Styles */
.login-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #e11d48;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
}

.login-button:hover {
    background-color: #be123c;
}

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

.button-loader {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sign Up Link Styles */
.signup-prompt {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.signup-link {
    color: #e11d48;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.signup-link:hover {
    color: #be123c;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-card,
    .login-type-selection {
        padding: 1.5rem;
    }

    .login-card h1,
    .login-type-selection h1 {
        font-size: 1.5rem;
    }

    .back-button {
        top: 1rem;
        left: 1rem;
    }
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid #e11d48;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .login-button,
    .login-option-btn {
        border: 2px solid currentColor;
    }
    
    .input-wrapper input {
        border: 2px solid currentColor;
    }
}



