*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:Arial, Helvetica, sans-serif;
}

:root{
    --bg1:#015c63;
    --bg2:#004d54;
    --bg3:#003f45;
    --panel:linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.16));
    --panel-border:rgba(255,255,255,0.12);
    --field-bg:rgba(0,0,0,0.16);
    --field-text:#ffffff;
    --field-placeholder:rgba(255,255,255,0.46);
    --accent:linear-gradient(180deg, #51d7c5 0%, #49c9b7 100%);
    --shadow:0 15px 40px rgba(0,0,0,0.18);
}

html, body{
    width:100%;
    min-height:100%;
}

body{
    min-height:100%;
    background:
        radial-gradient(circle at 8% 30%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.03) 10%, transparent 11%),
        radial-gradient(circle at 96% 14%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.02) 8%, transparent 9%),
        radial-gradient(circle at 97% 72%, rgba(255,255,255,0.07) 0, rgba(255,255,255,0.02) 10%, transparent 11%),
        linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg3) 100%);
    color:#fff;
    overflow-x:hidden;
    position:relative;
}

.ring{
    position:absolute;
    border:2px solid rgba(255,255,255,0.08);
    border-radius:50%;
    pointer-events:none;
}

.ring.left-1{width:260px;height:260px;left:-90px;top:110px;}
.ring.left-2{width:320px;height:320px;left:-120px;top:80px;border-color:rgba(255,255,255,0.05);}
.ring.right-1{width:260px;height:260px;right:-90px;bottom:80px;}
.ring.right-2{width:320px;height:320px;right:-120px;bottom:50px;border-color:rgba(255,255,255,0.05);}

.topbar{
    width:100%;
    padding:16px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.icon-btn,
.lang-btn{
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.08);
    color:#fff;
    border-radius:18px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    backdrop-filter:blur(6px);
}

.icon-btn{
    width:34px;
    margin:0 auto;
}

.lang-btn{
    padding:0 14px;
    gap:6px;
    font-size:14px;
}

.topbar .left,
.topbar .center,
.topbar .right{
    flex:1;
    display:flex;
    align-items:center;
}

.topbar .center{justify-content:center;}
.topbar .right{justify-content:flex-end;}

.wrapper{
    width:100%;
    max-width:920px;
    margin:0 auto;
    padding:0 16px 36px;
    text-align:center;
}

.logo{
    width:92px;
    height:92px;
    margin:4px auto 10px;
    border-radius:50%;
    background:linear-gradient(180deg, #ffffff 0%, #dff7f3 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 28px rgba(0,0,0,0.18);
    overflow:hidden;
}

.logo img{
    width:84px;
    height:84px;
    object-fit:cover;
    border-radius:50%;
    display:block;
}

h1{
    font-size:36px;
    font-weight:800;
    margin-bottom:6px;
    letter-spacing:0.2px;
    line-height:1.15;
}

.subtitle{
    font-size:18px;
    font-weight:700;
    margin-bottom:22px;
    line-height:1.3;
}

.msg{
    max-width:730px;
    margin:0 auto 18px;
    padding:14px 18px;
    border-radius:14px;
    color:#fff;
    text-align:left;
    font-size:14px;
    line-height:1.45;
}

.msg.error{
    background:rgba(255, 80, 80, 0.15);
    border:1px solid rgba(255, 120, 120, 0.25);
}

.msg.success{
    background:rgba(60, 180, 100, 0.16);
    border:1px solid rgba(120, 255, 170, 0.20);
}

.panel{
    max-width:730px;
    margin:0 auto;
    padding:24px 24px 28px;
    border-radius:24px;
    background:var(--panel);
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.10), var(--shadow);
    backdrop-filter:blur(10px);
    text-align:left;
    overflow:hidden;
}

.main-switch{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    background:rgba(0,0,0,0.12);
    padding:8px;
    border-radius:18px;
    margin-bottom:22px;
}

.main-tab, .sub-tab{
    border:0;
    border-radius:14px;
    cursor:pointer;
    color:rgba(255,255,255,0.72);
    background:transparent;
    box-shadow:none;
}

.main-tab{
    height:44px;
    font-size:16px;
}

.sub-switch{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    background:rgba(0,0,0,0.10);
    padding:8px;
    border-radius:18px;
    margin-bottom:24px;
}

.sub-tab{
    height:40px;
    font-size:14px;
}

.main-tab.active,
.sub-tab.active{
    background:rgba(255,255,255,0.16);
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.12);
}

.form-panel{
    display:none;
    animation:fade .22s ease;
}

.form-panel.active{
    display:block;
}

.field{
    margin-bottom:20px;
}

.field label{
    display:block;
    font-size:16px;
    margin-bottom:10px;
    color:rgba(255,255,255,0.95);
    line-height:1.25;
}

.input-wrap{
    position:relative;
}

.input-wrap input{
    width:100%;
    height:54px;
    border:none;
    outline:none;
    border-radius:14px;
    background:var(--field-bg);
    color:var(--field-text);
    padding:0 18px;
    font-size:15px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
}

.input-wrap input::placeholder{
    color:var(--field-placeholder);
}

.toggle-password{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    background:transparent;
    border:none;
    color:rgba(255,255,255,0.85);
    cursor:pointer;
    font-size:18px;
    line-height:1;
}

.phone-group{
    display:grid;
    grid-template-columns:170px 1fr;
    gap:10px;
    width:100%;
}

.phone-group select,
.phone-group input{
    width:100%;
    height:54px;
    border:none;
    outline:none;
    border-radius:14px;
    background:var(--field-bg);
    color:var(--field-text);
    padding:0 14px;
    font-size:15px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
}

.phone-group select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    cursor:pointer;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.phone-group select option{
    background:#0b4f56;
    color:#fff;
}

.remember-row{
    margin-top:-2px;
    margin-bottom:18px;
    text-align:left;
}

.remember-label{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:rgba(255,255,255,0.92);
    font-size:15px;
    cursor:pointer;
    user-select:none;
    line-height:1.3;
}

.remember-label input[type="checkbox"]{
    width:18px;
    height:18px;
    accent-color:#49c9b7;
    cursor:pointer;
    flex:0 0 auto;
}

.actions{
    max-width:730px;
    margin:22px auto 0;
    text-align:center;
}

.submit-btn{
    width:100%;
    height:58px;
    border:none;
    border-radius:18px;
    background:var(--accent);
    color:#fff;
    font-size:17px;
    cursor:pointer;
    box-shadow:0 0 22px rgba(77, 223, 207, 0.42);
}

.switch-link{
    margin-top:18px;
    display:inline-block;
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.profile-dot{
    position:fixed;
    right:18px;
    top:38%;
    width:54px;
    height:54px;
    border-radius:50%;
    overflow:hidden;
    box-shadow:0 8px 18px rgba(0,0,0,0.22);
    border:2px solid rgba(255,255,255,0.25);
    background:#ddd;
}

@keyframes fade{
    from{opacity:.6; transform:translateY(6px);}
    to{opacity:1; transform:translateY(0);}
}

@media (max-width:768px){
    .topbar{
        padding:14px 14px;
    }

    .lang-btn{
        padding:0 10px;
        font-size:13px;
    }

    .wrapper{
        padding:0 12px 28px;
    }

    .logo{
        width:82px;
        height:82px;
        margin:2px auto 10px;
    }

    .logo img{
        width:74px;
        height:74px;
    }

    h1{
        font-size:28px;
    }

    .subtitle{
        font-size:15px;
        margin-bottom:18px;
    }

    .panel{
        padding:18px 14px 22px;
        border-radius:20px;
    }

    .main-switch{
        padding:6px;
        gap:6px;
        margin-bottom:18px;
    }

    .main-tab{
        height:40px;
        font-size:14px;
    }

    .sub-switch{
        padding:6px;
        gap:6px;
        margin-bottom:18px;
    }

    .sub-tab{
        height:38px;
        font-size:13px;
    }

    .field{
        margin-bottom:16px;
    }

    .field label{
        font-size:14px;
        margin-bottom:8px;
    }

    .input-wrap input{
        height:50px;
        font-size:14px;
        padding:0 14px;
    }

    .phone-group{
        grid-template-columns:120px 1fr;
        gap:8px;
    }

    .phone-group select,
    .phone-group input{
        height:50px;
        font-size:14px;
        padding:0 10px;
    }

    .remember-label{
        font-size:14px;
    }

    .submit-btn{
        height:54px;
        font-size:16px;
    }

    .switch-link{
        font-size:14px;
        margin-top:14px;
    }

    .profile-dot{
        display:none;
    }

    .ring{
        opacity:.55;
        transform:scale(.82);
    }
}

@media (max-width:480px){
    .topbar{
        padding:12px 10px;
    }

    .icon-btn{
        width:30px;
        height:30px;
        border-radius:14px;
    }

    .lang-btn{
        height:30px;
        border-radius:14px;
        font-size:12px;
        padding:0 8px;
    }

    .wrapper{
        padding:0 10px 22px;
    }

    .logo{
        width:74px;
        height:74px;
    }

    .logo img{
        width:66px;
        height:66px;
    }

    h1{
        font-size:24px;
    }

    .subtitle{
        font-size:14px;
        margin-bottom:16px;
    }

    .msg{
        font-size:13px;
        padding:12px 14px;
        margin-bottom:14px;
    }

    .panel{
        padding:16px 12px 18px;
        border-radius:18px;
    }

    .main-tab{
        font-size:13px;
        height:38px;
    }

    .sub-tab{
        font-size:12px;
        height:36px;
    }

    .field label{
        font-size:13px;
    }

    .input-wrap input{
        height:48px;
        font-size:14px;
        border-radius:12px;
    }

    .phone-group{
        grid-template-columns:110px 1fr;
        gap:6px;
    }

    .phone-group select,
    .phone-group input{
        height:48px;
        font-size:13px;
        border-radius:12px;
        padding:0 9px;
    }

    .remember-label{
        font-size:13px;
    }

    .submit-btn{
        height:50px;
        font-size:15px;
        border-radius:16px;
    }

    .ring.left-1,
    .ring.left-2,
    .ring.right-1,
    .ring.right-2{
        display:none;
    }
}