.account-page{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:24px;
    background:
        radial-gradient(ellipse at 8% 4%,rgba(255,208,156,.38),transparent 33%),
        #f7f4ef;
    color:#232a33;
    font-family:'DM Sans','Segoe UI',sans-serif;
}

.account-shell{
    width:min(100%,1040px);
    min-height:min(720px,calc(100vh - 48px));
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(410px,.92fr);
    overflow:hidden;
    border:1px solid rgba(73,49,28,.08);
    border-radius:12px;
    background:#fff;
    box-shadow:0 22px 65px rgba(60,44,31,.13);
}

.account-showcase{
    position:relative;
    min-height:100%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    overflow:hidden;
    padding:30px;
    background:#f7dfc8;
    isolation:isolate;
}

.showcase-photo{
    position:absolute;
    z-index:-2;
    inset:0;
    background-image:url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=1200&q=88');
    background-position:center;
    background-size:cover;
}

.account-showcase::after{
    position:absolute;
    z-index:-1;
    inset:0;
    background:linear-gradient(180deg,rgba(255,247,237,.96) 0%,rgba(255,244,228,.72) 30%,rgba(255,240,221,.12) 58%,rgba(63,31,12,.56) 100%);
    content:'';
}

.account-brand{
    width:max-content;
    display:flex;
    align-items:center;
    gap:10px;
    color:#4d260e;
    text-decoration:none;
}

.account-brand-mark,
.mini-brand > span{
    width:40px;
    height:40px;
    display:grid;
    flex:0 0 auto;
    place-items:center;
    border-radius:50%;
    background:#f26a0a;
    color:#fff;
    font-size:25px;
    line-height:1;
}

.account-brand > span:last-child{
    display:grid;
}

.account-brand strong{
    font-size:21px;
    font-weight:800;
    line-height:1.1;
}

.account-brand small{
    margin-top:3px;
    color:#6f5d4e;
    font-size:10px;
}

.showcase-copy{
    max-width:440px;
    margin-bottom:34px;
    color:#fff;
    text-shadow:0 2px 10px rgba(34,20,10,.32);
}

.showcase-copy p{
    margin-bottom:6px;
    color:#ffe2c5;
    font-size:17px;
    font-style:italic;
    font-weight:800;
}

.showcase-copy h1{
    max-width:420px;
    font-size:clamp(34px,4vw,54px);
    font-weight:800;
    line-height:1.05;
}

.showcase-home{
    position:absolute;
    bottom:24px;
    left:30px;
    color:rgba(255,255,255,.88);
    font-size:11px;
    font-weight:700;
    text-decoration:none;
    text-shadow:0 1px 5px rgba(0,0,0,.35);
}

.showcase-home:hover{
    color:#fff;
}

.account-main{
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:38px 48px 22px;
    background:#fff;
}

.account-back{
    width:max-content;
    display:flex;
    align-items:center;
    gap:5px;
    margin:0 0 24px;
    color:#69717b;
    font-size:11px;
    text-decoration:none;
}

.account-back span{
    font-size:23px;
    line-height:.7;
}

.account-card{
    width:100%;
    max-width:390px;
    margin:0 auto;
}

.mini-brand{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:25px;
    color:#4d260e;
}

.mini-brand > span{
    width:30px;
    height:30px;
    font-size:19px;
}

.mini-brand strong{
    font-size:17px;
    font-weight:800;
}

.form-eyebrow{
    margin:0 0 4px;
    color:#e9650a;
    font-size:11px;
    font-weight:800;
}

.account-card h2{
    margin:0;
    color:#35271f;
    font-size:25px;
    font-weight:800;
    line-height:1.2;
}

.form-intro{
    margin:7px 0 20px;
    color:#737b85;
    font-size:12px;
    line-height:1.55;
}

.account-form{
    display:grid;
    gap:8px;
}

.account-form > label,
.label-row label{
    color:#444d57;
    font-size:11px;
    font-weight:700;
}

.account-form input{
    width:100%;
    min-height:42px;
    padding:0 13px;
    border:1px solid #e1e5e8;
    border-radius:7px;
    outline:0;
    background:#fff;
    color:#202632;
    font-size:12px;
    transition:border-color .16s ease,box-shadow .16s ease;
}

.account-form input::placeholder{
    color:#a1a8b0;
}

.account-form input:focus{
    border-color:#f09256;
    box-shadow:0 0 0 3px rgba(242,106,10,.12);
}

.label-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-top:5px;
}

.label-row a,
.account-switch a{
    color:#dd5906;
    font-size:11px;
    font-weight:700;
    text-decoration:none;
}

.label-row a:hover,
.account-switch a:hover{
    text-decoration:underline;
}

.account-submit{
    width:100%;
    min-height:43px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:11px;
    border:0;
    border-radius:7px;
    background:linear-gradient(100deg,#f26108,#ff7912);
    box-shadow:0 5px 12px rgba(226,89,5,.16);
    color:#fff;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
    transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}

.account-submit:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 16px rgba(226,89,5,.2);
    filter:saturate(1.08);
}

.button-link{
    box-sizing:border-box;
}

.account-switch{
    margin:17px 0 0;
    color:#78808a;
    font-size:11px;
    text-align:center;
}

.form-alert,
.form-success{
    margin:10px 0;
    padding:9px 11px;
    border:1px solid #f1c3bd;
    border-radius:6px;
    background:#fff2f0;
    color:#a33e34;
    font-size:11px;
    line-height:1.45;
}

.form-success{
    border-color:#b9e5ca;
    background:#effaf3;
    color:#27784b;
}

.register-form{
    grid-template-columns:1fr;
    gap:7px;
}

.register-form input{
    min-height:38px;
}

.label-hint{
    margin-left:4px;
    color:#969da5;
    font-size:9px;
    font-weight:500;
}

.success-illustration{
    width:96px;
    height:96px;
    display:grid;
    place-items:center;
    margin:0 auto 22px;
    border-radius:50%;
    background:radial-gradient(circle at 35% 30%,#fff5e8,#ffe0bd 70%);
}

.success-illustration span{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#58b85c;
    box-shadow:0 7px 16px rgba(59,151,64,.22);
    color:white;
    font-size:34px;
    font-weight:700;
}

.account-card:has(.success-illustration){
    text-align:center;
}

.account-card:has(.success-illustration) .form-intro{
    margin:10px auto 18px;
    max-width:300px;
}

.profile-heading{
    display:flex;
    align-items:center;
    gap:13px;
    margin-bottom:22px;
}

.profile-avatar{
    width:56px;
    height:56px;
    display:grid;
    flex:0 0 auto;
    place-items:center;
    border:3px solid #ffe1c7;
    border-radius:50%;
    background:#fff3e8;
    color:#e9660a;
    font-size:24px;
    font-weight:800;
}

.profile-heading h2{
    font-size:20px;
}

.profile-heading .form-intro{
    margin:3px 0 0;
}

.profile-nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin-bottom:18px;
    padding:4px;
    border-radius:7px;
    background:#f5f6f7;
}

.profile-nav a{
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    border-radius:5px;
    color:#626b76;
    font-size:10px;
    font-weight:700;
    text-decoration:none;
}

.profile-nav a.is-active{
    background:#fff;
    box-shadow:0 1px 4px rgba(25,35,45,.08);
    color:#e9650a;
}

.profile-form{
    gap:7px;
}

.profile-form input{
    min-height:38px;
}

.logout-form{
    margin-top:10px;
    text-align:center;
}

.logout-form button{
    padding:7px 12px;
    border:0;
    background:transparent;
    color:#a64a3e;
    font-size:11px;
    font-weight:700;
}

.account-footer{
    margin:27px auto 0;
    color:#a0a5ac;
    font-size:9px;
    text-align:center;
}

@media(max-width:850px){
    .account-shell{
        grid-template-columns:minmax(0,.85fr) minmax(380px,1fr);
    }

    .account-showcase{
        padding:24px;
    }

    .account-main{
        padding-right:32px;
        padding-left:32px;
    }
}

@media(max-width:680px){
    .account-page{
        display:block;
        padding:0;
        background:#fff;
    }

    .account-shell{
        width:100%;
        min-height:100svh;
        display:flex;
        flex-direction:column;
        overflow:visible;
        border:0;
        border-radius:0;
        box-shadow:none;
    }

    .account-showcase{
        min-height:175px;
        flex:0 0 auto;
        padding:19px 20px;
    }

    .account-showcase::after{
        background:linear-gradient(180deg,rgba(255,247,237,.97),rgba(255,244,228,.66) 58%,rgba(63,31,12,.22));
    }

    .account-brand-mark{
        width:34px;
        height:34px;
        font-size:21px;
    }

    .account-brand strong{
        font-size:18px;
    }

    .account-brand small{
        font-size:9px;
    }

    .showcase-copy{
        max-width:235px;
        margin:22px 0 2px;
        color:#4c2916;
        text-shadow:none;
    }

    .showcase-copy p{
        margin-bottom:2px;
        color:#e9650a;
        font-size:11px;
    }

    .showcase-copy h1{
        font-size:22px;
        line-height:1.1;
    }

    .showcase-home{
        display:none;
    }

    .account-main{
        flex:1 0 auto;
        padding:17px 20px 24px;
    }

    .account-back{
        margin:0 0 17px;
        font-size:10px;
    }

    .account-card{
        max-width:430px;
    }

    .mini-brand{
        margin-bottom:19px;
    }

    .account-card h2{
        font-size:23px;
    }

    .form-intro{
        margin-bottom:17px;
    }

    .account-form input{
        min-height:44px;
        font-size:13px;
    }

    .register-form input,
    .profile-form input{
        min-height:40px;
    }

    .account-submit{
        min-height:45px;
    }

    .account-footer{
        margin-top:25px;
    }
}

@media(max-width:380px){
    .account-showcase{
        min-height:155px;
    }

    .showcase-copy{
        margin-top:14px;
    }

    .account-main{
        padding-right:16px;
        padding-left:16px;
    }
}
