/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Sofia+Sans+Extra+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Sofia+Sans+Extra+Condensed:ital,wght@0,1..1000;1,1..1000&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

.tinos-bold-italic {
    font-family: "Tinos", serif;
    font-weight: 700;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tinos', serif;
    background-color: #f2f2f2;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    margin: 40px auto 40px auto;
}

header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}

.wrapper {
    width: 420px;
    background: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0,0,0,.2);
    color: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 30px 40px;
}

.wrapper h1 {
    font-size: 36px;
    text-align: center;
}

.wrapper .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 40px 0 ;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 40px;
    font-size: 16px;
    color: rgb(0, 0, 0);
    padding: 20px 45px 20px 20px;
}

.input-box input::placeholder {
    color: rgb(0, 0, 0);
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.wrapper .remeber-forgot {
    display: flex;
    /* justify-content: space-between; */
    font-size: 14.5px;
    margin: -15px 0 15px;
}

.remeber-forgot {
    display: flex;
    justify-content: center;
}

.remeber-forgot label input  {
    accent-color: #ffffff;
    margin-right: 3px;
}

.remeber-forgot a {
    color: hsl(0, 0%, 0%);
    text-decoration: none;
}

.remeber-forgot a:hover {
    text-decoration: underline;
}

.wrapper .btn {
    width: 100%;
    height: 45px;
    background: #28a745;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.wrapper .register-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}

.register-link p a {
    color: hsl(241, 100%, 73%);
    text-decoration: none;
    font-weight: 600;
}

.register-link p a:hover {
    text-decoration: underline;
}

.google-signup {
    text-align: center;
    margin-top: 15px;
}

.google-btn {
    width: 100%;
    height: 45px;
    background: #db4437;
    border: none;
    outline: none;
    border-radius: 40px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.google-btn:hover {
    background: #c1351d;
}

/* Ошибки */
/* .form-container {
    width: 100%;
}

.form-floating .form-control {
    background: none;
    color: #fff;
}

.form-floating label {
    color: #fff;
}

.form-control.is-invalid {
    background: none;
    border-color: #dc3545;
}

.form-floating .invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
} */

/* Стили ошибки */
/* .is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}    */

/* Стили текста ошибки */
/* .invalid-feedback,
.valid-feedback {
    display: none;
    font-size: 12px;
    margin-top: 5px;
    padding: 3px 5px;
} */

/* Красный цвет ошибки */
/* .form-control.is-invalid ~ .invalid-feedback {
    display: block;
    color: #dc3545;
} */

/* Зеленый цвет подтверждения */
/* .form-control.is-valid ~ .valid-feedback {
    display: block;
    color: #28a745;
} */


/* стили для спиннера */

#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.fa-spinner {
    margin-right: 10px;
}

/* Стили для контейнера кнопок OAuth */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.btn-google {
    border: none;
}

