.form-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form {
    min-width: 600px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    
    @media (max-width: 768px) {
        min-width: 400px;
    }
}

.auth-form:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.auth-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form .form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.auth-form .form-check input {
    margin-right: 0.5rem;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
}

.auth-link-container {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-link-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link-container a:hover {
    text-decoration: underline;
}

.auth-action-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.resend-container {
    margin-top: 1rem;
    text-align: center;
}

.back-link-container {
    margin-top: 1rem;
    text-align: center;
}

/* Two-factor authentication specific styles */
.two-factor-form .code-input {
    letter-spacing: 0.25rem;
    font-family: monospace;
    text-align: center;
}

.two-factor-form .countdown {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #dc3545;
}

/* External authentication buttons */
.external-auth-section {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.external-auth-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.external-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-external {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-microsoft {
    background-color: #2f2f2f;
    color: white;
}

.btn-microsoft:hover {
    background-color: #1e1e1e;
}
