/* Base styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

/* Header section */
.header {
    background-color: #004085;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.logo-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.logo:first-child {
    filter: brightness(0) invert(1);
}

.title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* Form section */
.form-container {
    padding: 2rem;
}

h1, h2 {
    color: #004085;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

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

label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

input:hover {
    border-color: #004085;
}

input:focus {
    border-color: #004085;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 64, 133, 0.2);
    background-color: white;
}

/* Button styles */
.button {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background-color: #004085;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

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

.button.secondary {
    background-color: #28a745;
}

.button.secondary:hover:not(:disabled) {
    background-color: #218838;
}

.button:disabled,
.button.disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid #dee2e6;
    transform: none;
    box-shadow: none;
}

/* Links */
.links {
    text-align: center;
    margin: 1rem 0;
}

.links a {
    color: #004085;
    text-decoration: none;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

/* Feedback and validation */
.feedback {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.feedback.valid {
    color: #28a745;
}

.feedback.invalid {
    color: #dc3545;
}

/* Error messages */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Dividers */
.divider {
    margin: 2rem 0;
    border-top: 1px solid #e9ecef;
    position: relative;
    text-align: center;
}

.divider span {
    background-color: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    top: -0.7rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        margin: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .logo {
        height: 40px;
    }

    input,
    .button {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}