/* ------------------Reset--------------------- */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    background-image: 
        url(/assets/images/night-sky.jpg),
        linear-gradient(205deg, #3f243b, #27334c, #111f2c);
    background-repeat: no-repeat; 
    background-position: center center; 
    background-attachment: fixed, fixed; 
    background-size: cover; 
}
@media (max-width: 1920px) { body { background-size: auto; } }

.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

.login-form { max-width: 390px; }
.reg-form { max-width: 410px; }

.form-container {
    width:100%;
    padding: 34px 42px 40px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #334155;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.form-container .title {
    margin-bottom: 30px;
    text-align: center;
    font-size: 35px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
    pointer-events: none;
}

.i-user { width: 17px; margin-top: -1px; }
.i-password { width: 20px; margin-top: -1px; }
.i-user-plus { width: 24px; margin-top: -3px; }
.i-sign-in { width: 18px; margin-top: -2px; }
.i-see-u { width: 19px; margin-top: -1px; }

.form-container input {
    display: block;
    padding: 15px 20px 16px 48px;
    margin: 11px auto;
    width: 100%;
	color: #e0e7ff;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: inset 0 0 12px rgb(0, 0, 0);
    background: rgba(0,0,0,0.5);
    outline: 0;
    font-size: 18px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-container input:focus {
	border-color: #818aca;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
    background: rgba(0,0,0,0.7);
}

.form-container .captcha {
    display:block;
    cursor: pointer;
    border: 2px solid #9c93cf;
    border-radius: 3px;
    box-shadow: 0px 0px 5px #000;
    margin: -4px auto 26px;
}

.btn {
    display: flex;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    color: #00352b;
    text-align: center;
    width: 100%;
    padding: 18px;
    margin: 20px 0 10px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgb(0 212 255 / 40%);
}

.info-icon {
    cursor: pointer;
    background: #5640c9;
    background-image: -webkit-linear-gradient( 180deg, #721ebf 0%, #4f53d8 100%, #4f53d8 100%, #4f53d8 100%);
    border-radius: 5px;
    width: 26px;
    height: 24px;
    display: inline-block;
    font-family: Georgia, serif;
    color: #fff;
    font-weight: 500;
    font-size: 19px;
    line-height: 24px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15);
}

.info-icon:hover {
    background: #5e2ac3;
    background-image: -webkit-linear-gradient( 180deg, #5c0fa2 0%, #3f43d4 100%, #3f43d4 100%, #3f43d4 100%);
}

.input-container {
    position: relative;
    margin-bottom: 28px;
}

.input-container p {
    text-align: center;
    font-size: 14px;
    font-style: italic;
    margin: 0 0 22px;
}

.input-container a {
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px dashed;
    color: #999;
}

.input-container a:hover {
    border-color: #8f76be;
    color: #8f76be;
}

.error-message {
    background: rgba(239,68,68,0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 12px;
    margin: -10px 0 20px;
    font-size: 15px;
    line-height: 19px;
    cursor: pointer;
    display: none;
}

.reg-data {
    margin: 0 0 40px;
    color: #94a3b8;
    font-size: 21px;
    line-height: 29px;
    padding: 16px 20px 20px;
    background: rgba(60,90,130,0.3);
    background: rgba(0,212,255,0.1);
    border-radius: 12px;
    border-left: 3px solid #00d4ff;
    text-align: left;
}

.reg-data span {
    color: #b9b1ec;
    font-family: monospace;
    font-size: 22px;
}
    
.reg-data p {
    font-size: 18px;
    line-height: 26px;
    color: #e0e7ff;
    margin: 10px 0 0;
}

.reg-data a {
    color: #f6e000;
    font-size: 19px;
    text-decoration: none;
    border-bottom: 1px dashed;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.reg-data a:hover {
    color: #fff500;
}

.tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #fffeec;
    border: 1px solid #f2d400;
    padding: 11px;
    z-index: 1;
    transition: opacity 0.1s;
    opacity: 0;
    color: #666;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    box-shadow: inset 0 0 12px rgba(120, 100, 0, 0.1);
}

.tooltip a {
    color: #6759b9;
    text-decoration: none;
    border-bottom: 1px dotted;
}

.tooltip a:hover {
    color: #5e2ac3;
}

.hidden {
    display: none;
}

.fade {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade.show {
    opacity: 1;
}

/* ------------------Fonts--------------- */ 
    
/* cyrillic */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-stretch: normal;
    font-display: swap;
    src: url(/assets/fonts/RobotoRegularCyr.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
    
/* latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-stretch: normal;
    font-display: swap;
    src: url(/assets/fonts/RobotoRegularLat.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}