*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#000;
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

.container{
    width:100%;
    max-width:560px;
    padding:35px;
}

.logo{
    text-align:center;
    margin-bottom:35px;
}

.logo h1{
    font-size:42px;
    letter-spacing:-2px;
}

.logo p{
    color:#888;
    margin-top:8px;
}

.card{
    background:#080808;
    border:1px solid #222;
    border-radius:18px;
    padding:35px;
}

h2{
    margin-bottom:10px;
}

.subtitle{
    color:#999;
    margin-bottom:28px;
    line-height:1.5;
}

.form-group{
    margin-bottom:20px;
}

label{
    display:block;
    margin-bottom:8px;
    color:#ccc;
    font-size:14px;
}

.password-wrapper{
    position:relative;
}

input{
    width:100%;
    background:#000;
    color:#fff;
    border:1px solid #333;
    border-radius:10px;
    padding:14px 46px 14px 14px;
    font-size:15px;
}

input:focus{
    outline:none;
    border-color:#fff;
}

.toggle-password{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:#888;
    font-size:18px;
    user-select:none;
}

.toggle-password:hover{
    color:#fff;
}

.rules{
    background:#000;
    border:1px solid #222;
    border-radius:14px;
    padding:18px;
    margin:24px 0;
}

.rules h3{
    font-size:16px;
    margin-bottom:14px;
}

.rule{
    color:#777;
    font-size:14px;
    margin-bottom:10px;
}

.rule.valid{
    color:#fff;
}

.rule::before{
    content:"○ ";
}

.rule.valid::before{
    content:"✓ ";
}

.error{
    color:#ff7777;
    font-size:14px;
    margin-top:10px;
    display:none;
}

button{
    width:100%;
    background:#fff;
    color:#000;
    border:none;
    border-radius:10px;
    padding:15px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

button:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.security-note{
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid #222;
    color:#888;
    font-size:14px;
    line-height:1.5;
}
