/* Main Form Container */
.m2m-auth-form {
    max-width: 400px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Form Headings */
.m2m-auth-form h2 {
    margin-top: 0;
    margin-bottom: 1.5em;
    color: #333;
    text-align: center;
    font-size: 1.8em;
    font-weight: 600;
}

/* Form Groups */
.m2m-form-group {
    margin-bottom: 1.5em;
}

/* Labels */
.m2m-form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #555;
}

/* Form Controls */
.m2m-form-control {
    width: 100%;
    padding: 0.75em 1em;
    font-size: 1em;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.m2m-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Error States */
.m2m-has-error .m2m-form-control {
    border-color: #dc3545;
}

.m2m-has-error .m2m-form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.m2m-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25em;
}

/* Buttons */
.m2m-btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75em 1.5em;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    width: 100%;
}

.m2m-btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.m2m-btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.m2m-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Links */
.m2m-links {
    margin-top: 1.5em;
    text-align: center;
    font-size: 0.9em;
}

.m2m-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 0.5em;
}

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

/* Remember Me */
.m2m-remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
}

.m2m-remember-me input[type="checkbox"] {
    margin-right: 0.5em;
}

/* Alerts */
.m2m-alert {
    padding: 1em;
    margin-bottom: 1.5em;
    border: 1px solid transparent;
    border-radius: 4px;
}

.m2m-alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.m2m-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Responsive Design */
@media (max-width: 480px) {
    .m2m-auth-form {
        margin: 1em;
        padding: 1.5em;
    }
    
    .m2m-links {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
    }
    
    .m2m-links a {
        margin: 0;
    }
}

/* Password Strength Meter */
.pass-strength-result {
    margin-top: 0.5em;
    padding: 0.5em;
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
}

.pass-weak {
    background-color: #f8d7da;
    color: #721c24;
}

.pass-medium {
    background-color: #fff3cd;
    color: #856404;
}

.pass-strong {
    background-color: #d4edda;
    color: #155724;
}
