﻿*{margin:0; padding:0; box-sizing:border-box; font-family:"poppins",sans-serif;}
body{
    width: 100%;
    min-height: 100vh;
    background-color: #c9d6ff;
    background: linear-gradient(to right,#e2e2e2, #c9d6ff);
    display: grid;
    place-items: center;
    padding: 1.5rem 0 3rem;
}
.auth-message{
    width:min(450px, calc(100% - 2rem));
    margin:2rem auto 0;
    padding:0.9rem 1rem;
    border-radius:10px;
    text-align:center;
    font-weight:600;
    box-shadow:0 10px 20px rgba(0,0,0,0.12);
}
.auth-message.is-success{
    background:#e8fff1;
    color:#11653b;
    border:1px solid #98deb5;
}
.auth-message.is-error{
    background:#fff0f0;
    color:#9f1d1d;
    border:1px solid #efb2b2;
}
.name {
    display: inline-flex;
    gap: 0;
    align-items: center;
    padding: 1rem 3rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 1rem rgba(0,0,0,0.9);
    max-width: 90vw;
    margin-top: 2rem;
}
.name .h-1, .h-2 {margin: 0; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; font-weight: bold;}
.name .h-1 {font-size: 3rem; color: rgb(151, 193, 241);}
.name .h-2 {font-size: 3rem; color: rgb(218, 135, 11);}
.container{
    background:#fff;
    width:min(450px, calc(100% - 2rem));
    padding:1.5rem;
    margin:auto;
    border-radius:10px;
    box-shadow:0 20px 35px rgba(0,0,1,0.9);
    margin-top: 3.5em;
}
form{margin:0 2rem;}
.form-title{
    font-size:1.5rem;
    font-weight:bold;
    text-align:center;
    padding:1.3rem;
    margin-bottom:0.4rem;
}
input{
    color:inherit;
    width:100%;
    background-color:transparent;
    border:none;
    border-bottom:1px solid #757575;
    padding-left:1.5rem;
    font-size:15px;
}
.input-group{padding:1% 0; position:relative;}
.input-group i{position:absolute; color:black;}
input:focus{background-color: transparent; outline:transparent; border-bottom:2px solid hsl(327,90%,28%);}
input::placeholder{color: transparent;}
label{
    color:#757575;
    position:relative;
    left:1.2em;
    top:-1.3em;
    cursor:auto;
    transition:0.3s ease all;
}
input:focus~label,input:not(:placeholder-shown)~label{top:-3em; color:hsl(327,90%,28%); font-size:15px;}
.recover{text-align:right; font-size:1rem; margin-bottom:1rem; font-weight:bold;}
.recover a{text-decoration:none; color:rgb(125,125,235);}
.recover a:hover{color:blue; text-decoration:underline;}
.form-hint{
    color:#555;
    font-size:0.95rem;
    line-height:1.35;
    margin:0 0 1rem;
    text-align:center;
}
.btn{
    font-size:1.1rem;
    padding:8px 0;
    border-radius:5px;
    outline:none;
    border:none;
    width:100%;
    background:rgb(125,125,235);
    color:white;
    cursor:pointer;
    transition:0.9s;
}
.btn:hover{background:#07001f;}
.btn:disabled{
    cursor:not-allowed;
    opacity:0.7;
}
.or{font-size:1.1rem; margin-top:0.5rem; text-align:center;}
.icons{text-align:center; transform: translate(0, 1.2vh);}
.icons img{
    max-width: 13%;
    max-height: 10%;
    color:rgb(125,125,235);
    border-radius:15px;
    font-size:1.5rem;
    cursor:pointer;
    border:2px solid #dfe9f5;
    margin:0 19px;
    transition:1s;
}
.icons img:hover{background:#07001f; font-size:1.6rem; border:2px solid rgb(125,125,235);}
.links{
    width: auto;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:0 1.5rem;
    margin-top:1rem;
    font-weight:bold;
    gap: 7px;
}
button{
    color:rgb(125,125,235);
    border:none;
    background-color:transparent;
    font-size:1rem;
    font-weight:bold;
}
button:hover{text-decoration:underline; color:blue;}
@media (max-width: 520px){
    .name{
        margin-top: 1rem;
        padding: 0.75rem 1rem;
    }
    .name h1,
    .name h2{
        font-size: 2rem;
    }
    form{
        margin: 0 0.5rem;
    }
    .links{
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Банер cookie соглашения пользователя */
.cookie-banner {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow:0 20px 35px rgba(0,0,1,0.9);
    border: 2px solid black;
    backdrop-filter: blur(5px);
    border-radius: 26px;
    color: #fff;
    display: none;
}

.cookie-content {
    width: auto;
    justify-content: center;
    align-items: center;
    margin: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 1.1rem;
}

.info-policy {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(151, 193, 241, 0.25);
    border: 2px solid rgba(151, 193, 241, 0.45);
    color: #0d151f;
    line-height: 1.45;
    text-align: center;
    position: relative;
}

.info-policy::after {
    content: '';
    position: absolute;
    background: rgba(151, 193, 241, 0.45);
    border-radius: 26px;
    inset: -8px;
    z-index: -1;
    filter: blur(14px);
}

.btn-p {
    display: inline-block;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: #111;
    background: rgb(151, 193, 241);
    font-size: 1rem;
    font-weight: bold;
}

.btn-p:hover {
    background-color: rgb(218, 135, 11);
    transform: scale(1.05);
    color: #111;
    text-decoration: none;
}

.cookie-buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.cookie-buttons button {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
}

.yes {
    background: #4CAF50;
    transition: background-color 0.3s ease, transform 0.3s ease
}

.yes:hover {
    transform: scale(1.05);
    background: green;
}

.no {
    background: #f44336;
    transition: background-color 0.3s ease, transform 0.3s ease
}

.no:hover {
    transform: scale(1.05);
    background: red;
}