﻿
/* ================================================
   PHOTAVIO CLIENT REGISTRATION
   ================================================ */

.pw-register {
    --pw-green: #294e4c;
    --pw-dark: #244a47;
    --pw-muted: #71827f;
    --pw-cream: #f8fbfa;
    --pw-border: #d5e0d9;
    --pw-sans: "DM Sans", Arial, sans-serif;
    --pw-serif: "Playfair Display", Georgia, serif;
    min-height: 100vh;
    padding: 0 24px;
    background: var(--pw-cream);
    color: var(--pw-dark);
    font-family: var(--pw-sans);
    font-size: 14px;
    line-height: 1.6;
}

    .pw-register *,
    .pw-register *::before,
    .pw-register *::after {
        box-sizing: border-box;
    }

    .pw-register a {
        color: inherit;
    }

/* HEADER */

.pw-register-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pw-register-brand {
    font-family: var(--pw-sans);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--pw-dark);
    text-decoration: none;
}

    .pw-register-brand:hover {
        color: var(--pw-green);
        text-decoration: none;
    }

.pw-back-link {
    font-size: 12px;
    text-decoration: none;
    color: var(--pw-dark);
}

    .pw-back-link:hover {
        text-decoration: underline;
    }

/* MAIN LAYOUT */

.pw-register-main {
    width: min(1310px, 100%);
    margin: 55px auto 75px;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    align-items: center;
    gap: 75px;
    padding: 0 20px;
}

/* LEFT INTRO */

.pw-register-intro {
    min-width: 0;
    padding: 20px 0;
}

.pw-register-eyebrow {
    margin: 0 0 22px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.3px;
    color: var(--pw-green);
}

.pw-register-intro h1 {
    margin: 0 0 25px;
    font-family: var(--pw-serif);
    font-size: clamp(47px, 4.3vw, 67px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -2px;
    color: var(--pw-dark);
}

    .pw-register-intro h1 em {
        font-style: italic;
        font-weight: 400;
    }

.pw-register-description {
    max-width: 420px;
    margin: 0 0 28px;
    color: #647b74;
    font-size: 15px;
    line-height: 1.8;
}

.pw-register-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

    .pw-register-features span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        white-space: nowrap;
    }

    .pw-register-features i {
        color: var(--pw-green);
        font-size: 10px;
    }

/* WEDDING PHOTO */

.pw-register-photo {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 48% 48% 8% 8% / 16% 16% 8% 8%;
}

    .pw-register-photo img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1.75;
        object-fit: cover;
        object-position: center 57%;
    }

.pw-register-photo-caption {
    margin: 12px 0 0;
    color: var(--pw-muted);
    font-size: 10px;
    text-align: center;
}

/* FORM CARD */

.pw-register-card {
    min-width: 0;
    padding: 38px 37px 29px;
    background: #fff;
    border: 1px solid #e1e9e4;
    border-radius: 26px;
    box-shadow: 0 20px 70px rgba(36, 74, 71, .035);
}

.pw-register-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 9px;
}

    .pw-register-card-top > span {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.6px;
    }

    .pw-register-card-top a {
        font-size: 12px;
        text-decoration: none;
        border-bottom: 1px solid #a5b7ae;
    }

.pw-register-card h2 {
    margin: 0 0 10px;
    font-family: var(--pw-serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--pw-dark);
}

.pw-register-form-intro {
    margin: 0 0 26px;
    color: var(--pw-muted);
    font-size: 12px;
}

/* FIELDS */

.pw-register-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 15px;
}

.pw-register-field {
    min-width: 0;
}

.pw-register-wide {
    grid-column: 1 / -1;
}

.pw-register-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--pw-dark);
    font-size: 12px;
    font-weight: 700;
}

.pw-register-field input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 12px 13px;
    border: 1px solid var(--pw-border);
    border-radius: 9px;
    background: #fbfcfb;
    color: var(--pw-dark);
    font-family: var(--pw-sans);
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.pw-register-field input::placeholder {
    color: #8a9b94;
    font-size: 12px;
}

.pw-register-field input:focus {
    border-color: var(--pw-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(41, 78, 76, .1);
}

.pw-register-password-wrap {
    position: relative;
}

    .pw-register-password-wrap input {
        padding-right: 55px !important;
    }

.pw-password-toggle {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: #526f65;
    font-family: var(--pw-sans);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

    .pw-password-toggle:hover {
        color: #173b38;
    }

/* VALIDATION */

.pw-field-error {
    display: block;
    color: #a32742;
    font-size: 11px;
    line-height: 1.4;
}

    .pw-field-error:not(:empty) {
        margin-top: 6px;
    }

.pw-register-validation {
    color: #a32742;
    font-size: 12px;
}

    .pw-register-validation.validation-summary-valid {
        display: none;
    }

.pw-register-field input.input-validation-error {
    border-color: #b74a59;
}

/* TERMS */

.pw-register-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0 21px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;
    cursor: pointer;
}

    .pw-register-terms input {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        margin: 2px 0 0;
        accent-color: var(--pw-green);
    }

    .pw-register-terms a {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* SUBMIT BUTTON */

.pw-register-submit {
    width: 100%;
    min-height: 51px;
    padding: 15px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border: 0;
    border-radius: 50px;
    background: var(--pw-green);
    color: #fff;
    font-family: var(--pw-sans);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease;
}

    .pw-register-submit:hover {
        background: #183e3a;
    }

    .pw-register-submit:disabled {
        opacity: .85;
        cursor: not-allowed;
    }

.pw-submit-arrow {
    font-size: 17px;
}

.pw-submit-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pw-spin .7s linear infinite;
}

    .pw-submit-spinner[hidden] {
        display: none;
    }

@keyframes pw-spin {
    to {
        transform: rotate(360deg);
    }
}

.pw-register-under {
    margin: 15px 0 0;
    color: var(--pw-muted);
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

/* FOOTER */

.pw-register-footer {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 20px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #e0e9e3;
    color: var(--pw-muted);
    font-size: 10px;
}

    .pw-register-footer a {
        text-decoration: none;
    }

        .pw-register-footer a:hover {
            text-decoration: underline;
        }

/* RESPONSIVE */

@media (max-width: 1000px) {
    .pw-register-main {
        gap: 35px;
        padding: 0 15px;
    }

    .pw-register-card {
        padding: 30px 24px;
    }

    .pw-register-intro h1 {
        font-size: 52px;
    }

    .pw-register-features {
        gap: 10px;
    }
}

@media (max-width: 720px) {
    .pw-register {
        padding: 0 16px;
    }

    .pw-register-header {
        padding: 22px 6px;
    }

    .pw-register-brand {
        font-size: 15px;
    }

    .pw-register-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        margin: 0 auto 35px;
        padding: 0 4px;
    }

    .pw-register-intro {
        padding: 15px 4px 0;
    }

    .pw-register-eyebrow {
        font-size: 8px;
        margin-bottom: 15px;
    }

    .pw-register-intro h1 {
        font-size: 43px;
        letter-spacing: -1.4px;
        line-height: 1.05;
        margin-bottom: 15px;
    }

    .pw-register-description {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 0;
    }

    .pw-register-features,
    .pw-register-photo-caption {
        display: none;
    }

    .pw-register-photo {
        margin-top: 20px;
    }

        .pw-register-photo img {
            aspect-ratio: 2.5;
            object-position: center 60%;
        }

    .pw-register-card {
        border-radius: 19px;
        padding: 26px 23px;
    }

        .pw-register-card h2 {
            font-size: 28px;
        }

    .pw-register-fields {
        gap: 17px 12px;
    }

    .pw-register-password-field {
        grid-column: 1 / -1;
    }

    .pw-register-field input:not([type="checkbox"]) {
        font-size: 16px;
    }

    .pw-register-footer {
        flex-wrap: wrap;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .pw-register-fields {
        grid-template-columns: 1fr;
    }

    .pw-register-field {
        grid-column: 1 / -1;
    }

    .pw-register-card {
        padding: 24px 18px;
    }

    .pw-register-intro h1 {
        font-size: 39px;
    }
}
