:root{
    --ert-blue:#284b96;
    --ert-blue-2:#315fae;
    --ert-light:#f4f7fb;
    --ert-border:#d8deea;
    --ert-text:#1d2c4c;
    --ert-muted:#5e6c87;
    --ert-danger:#d7414b;
    --ert-bg:#eef3f8;
    --ert-white:#ffffff;
}

*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#111;
    color:var(--ert-text);
}

body{
    min-height:100vh;
}

.portal-shell{
    min-height:100vh;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding:32px 16px;
    background:linear-gradient(180deg, #f3f6fb 0%, #edf2f8 100%);
}

.portal-card{
    width:100%;
    max-width:430px;
    background:var(--ert-white);
    border-radius:18px;
    box-shadow:0 20px 50px rgba(28, 44, 76, 0.10);
    overflow:hidden;
    border:1px solid #e7edf5;
}

.portal-header{
    text-align:center;
    padding:28px 28px 14px;
}

.portal-logo{
    display:block;
    margin:0 auto 12px;
    width:88px;
    height:88px;
    object-fit:contain;
}

.portal-brand{
    margin:0;
    color:var(--ert-blue);
    font-size:22px;
    line-height:1.25;
    font-weight:800;
}

.portal-site{
    margin:8px 0 0;
    color:var(--ert-blue);
    font-size:14px;
    font-weight:700;
}

.portal-top{
    padding:8px 28px 8px;
    text-align:center;
}

.portal-intro{
    margin:0;
    color:#4f596c;
    font-size:15px;
    line-height:1.6;
}

.portal-form-block{
    padding:18px 28px 16px;
}

.portal-ssid-label{
    color:#6b7891;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:1.4px;
    font-weight:700;
    margin-bottom:8px;
}

.portal-ssid{
    font-size:21px;
    color:var(--ert-blue);
    font-weight:800;
    margin-bottom:22px;
}

.field-group{
    margin-bottom:16px;
}

.field-group label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:700;
    color:#253757;
}

.field-group input{
    width:100%;
    height:50px;
    border:1px solid var(--ert-border);
    border-radius:14px;
    padding:0 16px;
    font-size:15px;
    outline:none;
    background:#fff;
    color:#24324f;
}

.field-group input::placeholder{
    color:#8a94a8;
}

.field-group input:focus{
    border-color:var(--ert-blue-2);
    box-shadow:0 0 0 3px rgba(49,95,174,0.10);
}

.password-wrap{
    position:relative;
}

.password-wrap input{
    padding-right:92px;
}

.toggle-password{
    position:absolute;
    top:50%;
    right:12px;
    transform:translateY(-50%);
    border:none;
    background:transparent;
    color:var(--ert-blue);
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

.submit-btn{
    width:100%;
    height:52px;
    border:none;
    border-radius:14px;
    background:linear-gradient(180deg, #356fc4 0%, #2c61b0 100%);
    color:#fff;
    font-size:17px;
    font-weight:800;
    cursor:pointer;
    margin-top:8px;
}

.submit-btn:hover{
    filter:brightness(0.98);
}

.integration-note{
    margin:14px 0 0;
    padding:12px 14px;
    border-radius:12px;
    background:#f7f1dd;
    color:#8a6610;
    font-size:14px;
    text-align:center;
}

.portal-recommendations{
    margin:8px 28px 20px;
    padding:18px 18px 16px;
    border-radius:14px;
    background:#f4f8fe;
    border:1px solid #d8e4f7;
}

.portal-recommendations h2{
    margin:0 0 10px;
    color:var(--ert-blue);
    font-size:16px;
    font-weight:800;
}

.portal-recommendations ul{
    margin:0;
    padding-left:18px;
    color:#415069;
}

.portal-recommendations li{
    margin-bottom:8px;
    line-height:1.5;
    font-size:14px;
}

.portal-footer{
    border-top:1px solid #e8edf4;
    padding:16px 20px 22px;
    text-align:center;
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px 14px;
    justify-content:center;
    margin-bottom:12px;
    font-size:13px;
}

.footer-links a,
.footer-links span{
    color:var(--ert-blue);
    text-decoration:none;
}

.footer-copy{
    color:#66738a;
    font-size:13px;
    line-height:1.6;
}

@media (max-width:480px){
    .portal-shell{
        padding:14px 8px;
    }

    .portal-card{
        max-width:100%;
        border-radius:0;
    }

    .portal-header,
    .portal-top,
    .portal-form-block{
        padding-left:20px;
        padding-right:20px;
    }

    .portal-recommendations{
        margin-left:20px;
        margin-right:20px;
    }
}
