*{box-sizing:border-box}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#f5f8f7;
    color:#071b3a;
}

a{color:inherit}

.profile-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 16px;
}

.profile-card{
    width:100%;
    max-width:560px;
    background:#fff;
    border:1px solid #e1e9e5;
    border-radius:20px;
    padding:34px;
    box-shadow:0 22px 60px rgba(7,27,58,.09);
}

.brand{
    display:block;
    text-align:center;
    text-decoration:none;
    font-size:28px;
    line-height:1;
    font-weight:800;
    color:#071b3a;
    margin-bottom:28px;
}

.brand span{color:#18a874}

.profile-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:25px;
}

.profile-avatar{
    width:52px;
    height:52px;
    flex:0 0 52px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e5f8f0;
    color:#119968;
    font-size:19px;
    font-weight:800;
}

h1{
    margin:0;
    font-size:27px;
    letter-spacing:-.5px;
}

.muted{
    margin:6px 0 0;
    color:#6b7890;
    font-size:14px;
    line-height:1.5;
}

.profile-section{
    border:1px solid #e5ece9;
    border-radius:15px;
    padding:20px;
    margin-top:16px;
    background:#fff;
}

.password-section{
    background:#fbfdfc;
}

.section-title{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;
    margin-bottom:17px;
}

.section-title h2{
    margin:0;
    color:#14233b;
    font-size:17px;
}

.section-title p{
    margin:6px 0 0;
    color:#778398;
    font-size:12px;
    line-height:1.55;
}

.section-title>span{
    padding:5px 9px;
    border-radius:999px;
    background:#e8f8f1;
    color:#11885f;
    font-size:10px;
    font-weight:700;
}

.profile-fields{
    display:grid;
    gap:13px;
}

.field{
    margin-bottom:13px;
}

.field:last-child{margin-bottom:0}

.field label{
    display:block;
    margin-bottom:7px;
    color:#243650;
    font-size:12px;
    font-weight:700;
}

.field input{
    width:100%;
    height:46px;
    border:1px solid #d7e0dc;
    border-radius:10px;
    padding:0 13px;
    background:#fff;
    color:#13233c;
    font-size:14px;
    outline:none;
}

.field input:focus{
    border-color:#18a874;
    box-shadow:0 0 0 3px rgba(24,168,116,.11);
}

.field input[readonly]{
    background:#f8faf9;
    color:#526176;
}

.password-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:13px;
}

.password-note{
    display:flex;
    align-items:center;
    gap:8px;
    margin:15px 0;
    padding:10px 12px;
    border:1px solid #dceee7;
    border-radius:9px;
    background:#f2fbf7;
    color:#587066;
    font-size:11px;
}

.profile-primary-button{
    width:100%;
    height:46px;
    border:0;
    border-radius:10px;
    background:#18a874;
    color:#fff;
    font-size:14px;
    font-weight:750;
    cursor:pointer;
    transition:.2s ease;
}

.profile-primary-button:hover{
    background:#119866;
    transform:translateY(-1px);
}

.alert{
    padding:12px 14px;
    border-radius:10px;
    margin-bottom:14px;
    font-size:13px;
    line-height:1.45;
}

.alert.success{
    background:#ecfbf4;
    color:#087443;
    border:1px solid #bcebd5;
}

.alert.error{
    background:#fff0f0;
    color:#b42318;
    border:1px solid #ffd0d0;
}

.profile-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:18px;
}

.profile-actions form{margin:0}

.home-link{
    color:#087f5b;
    text-decoration:none;
    font-size:13px;
    font-weight:650;
}

.home-link:hover{text-decoration:underline}

.logout-button{
    min-width:130px;
    height:44px;
    padding:0 18px;
    border:0;
    border-radius:10px;
    background:#18a874;
    color:#fff;
    font-size:13px;
    font-weight:750;
    cursor:pointer;
}

.logout-button:hover{background:#119866}

@media(max-width:600px){
    .profile-page{padding:20px 12px}
    .profile-card{padding:22px 16px;border-radius:16px}
    .brand{font-size:25px;margin-bottom:23px}
    .profile-header{align-items:flex-start}
    .profile-avatar{width:46px;height:46px;flex-basis:46px}
    h1{font-size:24px}
    .profile-section{padding:16px}
    .password-grid{grid-template-columns:1fr}
    .profile-actions{flex-direction:column;align-items:stretch}
    .home-link{text-align:center}
    .logout-button{width:100%}
}
