/* acl-frontend-login.css */

/* Universal form styling for all plugin forms */
.acl-frontend-login-form,
.acl-frontend-register-form,
.acl-frontend-reset-form,
.acl-frontend-profile-form {
    max-width: 350px;
    margin: 2em auto 2em auto;
    padding: 2em;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    font-family: inherit;
}

.acl-frontend-login-form h3,
.acl-frontend-register-form h3,
.acl-frontend-reset-form h3,
.acl-frontend-profile-form h3 {
    margin-bottom: 1em;
    text-align: center;
    color: #22223b;
}

.acl-frontend-login-form label,
.acl-frontend-register-form label,
.acl-frontend-reset-form label,
.acl-frontend-profile-form label {
    display: block;
    margin: 1em 0 0.5em;
    color: #22223b;
    font-weight: 500;
}

/* Unified input styles for all forms */
.acl-frontend-login-form input[type="text"],
.acl-frontend-login-form input[type="password"],
.acl-frontend-login-form input[type="email"],
.acl-frontend-register-form input[type="text"],
.acl-frontend-register-form input[type="password"],
.acl-frontend-register-form input[type="email"],
.acl-frontend-reset-form input[type="text"],
.acl-frontend-reset-form input[type="password"],
.acl-frontend-reset-form input[type="email"],
.acl-frontend-profile-form input[type="text"],
.acl-frontend-profile-form input[type="password"],
.acl-frontend-profile-form input[type="email"] {
    width: 100%;
    padding: 0.7em;
    margin-bottom: 0.7em;
    border: 1px solid #cdd1d9;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.acl-frontend-login-form input:focus,
.acl-frontend-register-form input:focus,
.acl-frontend-reset-form input:focus,
.acl-frontend-profile-form input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 1.5px #5a67d833;
}

/* Unified button styles for all forms */
.acl-frontend-login-form button[type="submit"],
.acl-frontend-register-form button[type="submit"],
.acl-frontend-reset-form button[type="submit"],
.acl-frontend-profile-form button[type="submit"] {
    width: 100%;
    padding: 0.8em;
    background: #5a67d8;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5em;
    transition: background 0.2s;
}

.acl-frontend-login-form button[type="submit"]:hover,
.acl-frontend-register-form button[type="submit"]:hover,
.acl-frontend-reset-form button[type="submit"]:hover,
.acl-frontend-profile-form button[type="submit"]:hover {
    background: #434190;
}

/* Error and success messages (shared for all forms) */
.acl-fl-error,
.acl-fl-success {
    padding: 0.8em;
    margin-bottom: 1em;
    border-radius: 5px;
    font-size: 0.97em;
    text-align: center;
}

.acl-fl-error {
    background: #fff5f5;
    border: 1px solid #e53e3e;
    color: #e53e3e;
}

.acl-fl-success {
    background: #f0fff4;
    border: 1px solid #38a169;
    color: #276749;
}

/* --- Profile Card Pro Styling --- */
.acl-profile-card {
    max-width: 420px;
    margin: 3em auto 2em auto;
    background: rgba(30,32,40, 0.92);
    border-radius: 2rem;
    box-shadow: 0 12px 32px 0 rgba(36,44,99,0.22), 0 1.5px 8px rgba(50,50,75,0.07);
    padding: 2.5em 2em 2em 2em;
    color: #f4f6fa;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    position: relative;
    border: 1.5px solid rgba(80,90,120,0.12);
    backdrop-filter: blur(3px);
}

.acl-profile-card h3 {
    margin-bottom: 2em;
    text-align: center;
    color: #ffde59;
    letter-spacing: 0.01em;
    font-size: 1.55em;
    font-weight: 700;
}

.acl-profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2em;
}

.acl-profile-avatar-img, #acl_fl_avatar_preview {
    width: 102px;
    height: 102px;
    border-radius: 100%;
    object-fit: cover;
    border: 3px solid #ffe066;
    background: #fff;
    box-shadow: 0 1.5px 14px rgba(0,0,0,0.07);
}

#acl_fl_avatar_preview {
    display: none;
    margin-left: -110px;
}

.acl-profile-avatar-field {
    text-align: center;
    margin-bottom: 1.4em;
}

.acl-profile-avatar-field label {
    font-size: 1em;
    font-weight: 600;
    color: #ffde59;
    letter-spacing: 0.01em;
}

.acl-profile-avatar-field input[type="file"] {
    margin-top: 0.6em;
    color: #f8e996;
    font-size: 0.95em;
    padding: 0.35em;
    border-radius: 7px;
    background: transparent;
    border: none;
    outline: none;
}

/* Pro Grid: Responsive fields */
.acl-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25em 1em;
    margin-bottom: 1.8em;
}

@media (min-width: 540px) {
    .acl-profile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5em 1em;
    }
}

.acl-profile-grid label {
    color: #fff7b6;
    margin-bottom: 0.38em;
    font-size: 1.01em;
    font-weight: 500;
    display: block;
    letter-spacing: 0.02em;
}

.acl-profile-grid input[type="text"],
.acl-profile-grid input[type="email"],
.acl-profile-grid input[type="password"] {
    width: 100%;
    padding: 0.8em 0.95em;
    border-radius: 0.7em;
    border: 1.5px solid #414156;
    background: rgba(55,58,80,0.93);
    color: #f4f4fc;
    font-size: 1.07em;
    margin-top: 0.18em;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 7px rgba(70,68,140,0.07);
}
.acl-profile-grid input[type="text"]:focus,
.acl-profile-grid input[type="email"]:focus,
.acl-profile-grid input[type="password"]:focus {
    border-color: #ffe066;
    background: #23243b;
    outline: none;
    box-shadow: 0 0 0 1.5px #ffe06633;
}

/* Submit Button */
.acl-profile-card button[type="submit"] {
    width: 100%;
    padding: 1em 0;
    background: linear-gradient(90deg,#ffe066 0%,#ffd11b 100%);
    color: #292623;
    border: none;
    border-radius: 0.7em;
    font-size: 1.11em;
    font-weight: bold;
    letter-spacing: 0.04em;
    cursor: pointer;
    margin-top: 1.1em;
    box-shadow: 0 1.5px 12px rgba(140,120,30,0.07);
    transition: background 0.19s, color 0.19s;
}

.acl-profile-card button[type="submit"]:hover {
    background: linear-gradient(90deg,#ffd11b 0%,#ffe066 100%);
    color: #1b180e;
}

.acl-fl-error, .acl-fl-success {
    border-radius: 0.7em;
    font-size: 1.01em;
    margin-bottom: 1.35em;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 8px rgba(140,120,30,0.07);
}

.acl-fl-error {
    background: #fff4ed;
    border: 1.3px solid #e8590c;
    color: #c0380a;
}

.acl-fl-success {
    background: #e8fff0;
    border: 1.3px solid #38b37c;
    color: #19754c;
}

/* Add spacing between the form and the card */
.acl-frontend-profile-form {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
/* Remove default form padding/margin inside cards for consistency */
.acl-profile-card .acl-frontend-register-form,
.acl-profile-card .acl-frontend-login-form,
.acl-profile-card .acl-frontend-reset-form {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Optional: Slightly tighter fields for small screens */
@media (max-width: 480px) {
    .acl-profile-card {
        padding: 1.3em 0.7em 1.3em 0.7em;
    }
    .acl-profile-grid {
        gap: 0.7em 0.5em;
    }
}