/* ============================================
   Doc Miners — Auth Styles
   Version: 1.0
   ============================================ */

/* Auth page wrapper — centers the form card */
.mybutler-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 40px 16px;
}

/* Form card */
.mybutler-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Card header */
.mybutler-auth-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    text-align: center;
}

.mybutler-auth-subtitle {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Form fields */
.mybutler-auth-field {
    margin-bottom: 16px;
}

.mybutler-auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.mybutler-auth-field input[type="text"],
.mybutler-auth-field input[type="email"],
.mybutler-auth-field input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.mybutler-auth-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Submit button */
.mybutler-auth-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

.mybutler-auth-submit:hover {
    background: #1d4ed8;
}

.mybutler-auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Inline status/error messages */
.mybutler-auth-message {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.mybutler-auth-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.mybutler-auth-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

/* Links row */
.mybutler-auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
}

.mybutler-auth-links a {
    color: #2563eb;
    text-decoration: none;
}

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

/* Resend link inside error messages */
.mybutler-auth-message a.mybutler-resend-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
}

/* Password strength indicator */
.mybutler-pw-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    background: #e5e7eb;
    overflow: hidden;
}

.mybutler-pw-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

/* ============================================
   F8.1: OAuth button + divider styles
   ============================================ */

/* OAuth button — shared base */
.mybutler-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

/* Google-specific styling */
.mybutler-oauth-google {
    background: #fff;
    color: #3c4043;
}

.mybutler-oauth-google:hover {
    background: #f8f9fa;
    border-color: #c4c7cc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #3c4043;
}

.mybutler-oauth-icon {
    flex-shrink: 0;
}

/* "or" divider between OAuth and email form */
.mybutler-oauth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.mybutler-oauth-divider::before,
.mybutler-oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.mybutler-oauth-divider span {
    font-size: 13px;
    color: #94a3b8;
    text-transform: lowercase;
}

/* Responsive */
@media (max-width: 480px) {
    .mybutler-auth-card {
        padding: 24px 20px;
    }
}
