/* =========================================================
   Shrang Account Forms
   File belongs to:
   Plugin: sharang-music-generator
   Path: assets/css/account-forms.css

   Purpose:
   Safe Login/Create Account form refinement.
   Do not use this file for Account dashboard, Result Page,
   Recent Clips, My Clips, Clip Studio, or global layout.
   ========================================================= */

.shrang-account-page {
    max-width: 760px;
    margin-top: -8px;
}

/* Make login/create account pages feel like Shrang app pages, not plain article pages. */
.shrang-account-page > h1 {
    margin: 0 0 14px;
    color: #111111;
    font-size: clamp(34px, 7vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.shrang-account-page > p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #3e3733;
    font-size: 18px;
    line-height: 1.62;
}

/* Notices such as logged out message */
.shrang-account-page .sharang-result,
.shrang-account-page .sharang-result-success,
.shrang-account-page .sharang-result-error {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.035);
}

.shrang-account-page .sharang-result-success {
    border-color: rgba(20, 184, 166, 0.22);
    background:
        radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.07), transparent 34%),
        #ffffff;
}

.shrang-account-page .sharang-result-error {
    border-color: rgba(180, 35, 24, 0.22);
    background:
        radial-gradient(circle at 0% 0%, rgba(180, 35, 24, 0.055), transparent 34%),
        #fff7f7;
}

/* Form panel */
.shrang-account-form {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(240, 216, 206, 0.92);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(250, 84, 32, 0.08), transparent 34%),
        radial-gradient(circle at 100% 5%, rgba(124, 58, 237, 0.045), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.055);
}

/* Avoid extra panel when form follows a notice and already has spacing */
.shrang-account-page .sharang-result + .shrang-account-form {
    margin-top: 16px;
}

.shrang-account-form p {
    margin: 0 0 16px;
}

.shrang-account-form label {
    display: block;
    margin: 0 0 7px;
    color: #111111;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.shrang-account-form input[type="text"],
.shrang-account-form input[type="email"],
.shrang-account-form input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid #d8d3cc;
    border-radius: 13px;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    line-height: 1.45;
}

.shrang-account-form input[type="text"]:focus,
.shrang-account-form input[type="email"]:focus,
.shrang-account-form input[type="password"]:focus {
    outline: none;
    border-color: #fa5420;
    box-shadow: 0 0 0 3px rgba(250, 84, 32, 0.13);
}

.shrang-account-form small {
    display: block;
    margin-top: 7px;
    color: #6f6862;
    font-size: 13px;
    line-height: 1.45;
}

/* Checkbox rows */
.shrang-account-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #fa5420;
}

.shrang-account-form p:has(input[type="checkbox"]),
.shrang-show-password-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 18px;
    color: #333333;
    font-size: 15px;
    font-weight: 700;
}

.shrang-account-form p:has(input[type="checkbox"]) label,
.shrang-show-password-row label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #333333;
    font-size: 15px;
    font-weight: 800;
}

/* Main submit buttons, including the old/default Log In button */
.shrang-account-form button,
.shrang-account-form input[type="submit"],
.shrang-account-form .button,
.shrang-account-page input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid #fa5420 !important;
    border-radius: 13px !important;
    background: #fa5420 !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(250, 84, 32, 0.16);
    appearance: none;
    -webkit-appearance: none;
}

.shrang-account-form button:hover,
.shrang-account-form input[type="submit"]:hover,
.shrang-account-form .button:hover,
.shrang-account-page input[type="submit"]:hover {
    background: #e94717 !important;
    border-color: #e94717 !important;
    color: #ffffff !important;
}

/* Secondary account text links */
.shrang-account-secondary-text,
.shrang-account-page > p:last-child {
    margin-top: 18px;
    color: #3e3733;
    font-size: 15px;
    line-height: 1.55;
}

.shrang-account-secondary-text a,
.shrang-account-page a {
    color: #111111;
    font-weight: 900;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.shrang-account-secondary-text a:hover,
.shrang-account-page a:hover {
    color: #fa5420;
}

/* Lost password link spacing when it appears outside normal secondary text */
.shrang-account-page a[href*="lost-password"] {
    display: inline-flex;
    margin-top: 8px;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {
    .shrang-account-page {
        margin-top: -10px;
    }

    .shrang-account-page > h1 {
        font-size: 34px;
    }

    .shrang-account-page > p {
        margin-bottom: 18px;
        font-size: 16px;
        line-height: 1.58;
    }

    .shrang-account-form {
        padding: 16px;
        border-radius: 19px;
    }

    .shrang-account-form p {
        margin-bottom: 14px;
    }

    .shrang-account-form label {
        font-size: 14px;
    }

    .shrang-account-form input[type="text"],
    .shrang-account-form input[type="email"],
    .shrang-account-form input[type="password"] {
        min-height: 43px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 14px;
    }

    .shrang-account-form button,
    .shrang-account-form input[type="submit"],
    .shrang-account-form .button,
    .shrang-account-page input[type="submit"] {
        width: 100%;
        min-height: 43px;
        padding: 10px 15px;
        border-radius: 12px !important;
        font-size: 14px;
    }

    .shrang-account-form p:has(input[type="checkbox"]),
    .shrang-show-password-row {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .shrang-account-form p:has(input[type="checkbox"]) label,
    .shrang-show-password-row label {
        font-size: 14px;
    }

    .shrang-account-page .sharang-result,
    .shrang-account-page .sharang-result-success,
    .shrang-account-page .sharang-result-error {
        padding: 14px;
        border-radius: 15px;
    }
}

@media (max-width: 420px) {
    .shrang-account-page > h1 {
        font-size: 32px;
    }
}