/* Hide WP page title */
.entry-title,
.page-title,
.post-title,
.article-title,
.wp-block-post-title,
.entry-header,
.page-header,
.post-header {
    display: none !important;
}

/* Box-sizing reset */
.reef-login-wrap,
.reef-login-wrap *,
.reef-login-wrap *::before,
.reef-login-wrap *::after {
    box-sizing: border-box;
}

/* Container */
.reef-login-wrap {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reef-login-wrap h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.2;
}

.reef-login-wrap > p {
    font-size: 15px;
    color: #666;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* Form fields */
.reef-login-wrap .reef-form-field {
    margin-bottom: 20px;
}

.reef-login-wrap .reef-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.reef-login-wrap .reef-form-field input[type="text"],
.reef-login-wrap .reef-form-field input[type="email"],
.reef-login-wrap .reef-form-field input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.reef-login-wrap .reef-form-field input[type="text"]::placeholder,
.reef-login-wrap .reef-form-field input[type="email"]::placeholder,
.reef-login-wrap .reef-form-field input[type="password"]::placeholder {
    color: #9ca3af;
}

.reef-login-wrap .reef-form-field input[type="text"]:focus,
.reef-login-wrap .reef-form-field input[type="email"]:focus,
.reef-login-wrap .reef-form-field input[type="password"]:focus {
    border-color: var(--reef-login-accent, #ee2966);
    box-shadow: 0 0 0 3px var(--reef-login-accent-glow, rgba(238, 41, 102, 0.12));
}

/* Field hint */
.reef-field-hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.reef-field-hint.reef-hint-error {
    color: #dc2626;
}

/* Field error state */
.reef-login-wrap .reef-form-field.has-error input[type="text"],
.reef-login-wrap .reef-form-field.has-error input[type="email"],
.reef-login-wrap .reef-form-field.has-error input[type="password"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Error message */
.reef-login-error {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Submit button */
.reef-login-wrap .reef-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--reef-login-accent, #ee2966);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.reef-login-wrap .reef-submit-btn:hover {
    background: var(--reef-login-accent-hover, #cc1f56);
    box-shadow: 0 4px 12px var(--reef-login-accent-shadow, rgba(238, 41, 102, 0.3));
}

.reef-login-wrap .reef-submit-btn:active {
    transform: scale(0.985);
}

/* Forgot password link */
.reef-login-forgot {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.reef-login-forgot a {
    color: var(--reef-login-accent, #ee2966);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reef-login-forgot a:hover {
    color: var(--reef-login-accent-hover, #cc1f56);
    text-decoration: underline;
}

/* Signup link */
.reef-login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.reef-login-footer a {
    color: var(--reef-login-accent, #ee2966);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reef-login-footer a:hover {
    color: var(--reef-login-accent-hover, #cc1f56);
    text-decoration: underline;
}

/* Reseller branding header */
.reef-reseller-auth-branding {
    text-align: center;
    margin-bottom: 8px;
}

.reef-reseller-auth-branding .reef-reseller-auth-logo {
    display: block;
    max-width: 180px;
    max-height: 64px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.reef-reseller-auth-branding h2 {
    text-align: center;
}

/* Access denied card */
.reef-access-denied {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.reef-access-denied svg {
    display: block;
    margin: 0 auto 16px;
    color: #9ca3af;
}

.reef-access-denied h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.reef-access-denied p {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.reef-access-denied .reef-submit-btn {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--reef-login-accent, #ee2966);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.reef-access-denied .reef-submit-btn:hover {
    background: var(--reef-login-accent-hover, #cc1f56);
    box-shadow: 0 4px 12px var(--reef-login-accent-shadow, rgba(238, 41, 102, 0.3));
}

/* Responsive */
@media (max-width: 480px) {
    .reef-login-wrap {
        padding: 40px 16px 60px;
    }

    .reef-login-wrap h2 {
        font-size: 24px;
    }

    .reef-login-wrap .reef-form-field input[type="text"],
    .reef-login-wrap .reef-form-field input[type="email"],
    .reef-login-wrap .reef-form-field input[type="password"] {
        padding: 10px 14px;
        font-size: 16px;
    }

    .reef-login-wrap .reef-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .reef-login-wrap .reef-submit-btn {
        min-height: 48px;
    }
}

/* Button loading state */
.reef-login-wrap .reef-submit-btn.reef-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.reef-login-wrap .reef-submit-btn.reef-btn--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: reef-login-spin 0.6s linear infinite;
}

@keyframes reef-login-spin {
    to { transform: rotate(360deg); }
}
