body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input-group.error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input-group .error-message {
    color: #dc3545;
    font-size: 0.8em;
    margin-top: 5px;
    display: none;
}

.input-group.error .error-message {
    display: block;
}

input, button {
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.login-button, .passkey-button {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-button {
    background-color: #007bff;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.login-button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.login-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.2);
}

.passkey-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.passkey-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.passkey-button:active {
    transform: translateY(1px);
    background-color: #e2e6ea;
}

.passkey-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.passkey-button:hover .passkey-icon {
    transform: scale(1.1);
}

.signup-link {
    text-align: center;
    margin-top: 15px;
}

.signup-link a {
    color: #007bff;
    text-decoration: none;
}

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
}

.or-divider span {
    padding: 0 10px;
    color: #888;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.form-description {
    text-align: center;
    color: #6c757d;
    margin-bottom: 20px;
}

.check-email-container {
    text-align: center;
}

.email-icon {
    font-size: 4rem;
    margin: 20px 0;
}

.resend-instructions {
    color: #6c757d;
    margin: 20px 0;
}

.resend-instructions a {
    color: #007bff;
    text-decoration: none;
}

.troubleshooting-list {
    text-align: left;
    color: #6c757d;
    margin: 20px 0;
    padding-left: 20px;
}

.troubleshooting-list li {
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.secondary-button {
    background-color: #6c757d;
    color: white;
}

.help-text {
    margin-top: 20px;
    color: #6c757d;
    font-size: 0.9em;
}

@media (max-width: 400px) {
    .login-container {
        width: 95%;
        margin: 0 10px;
    }
}