.form-signin {
    max-width: 660px;
    padding: 15px;
}

/* Auth pages (login, codelogin) */

body:has(.auth-page) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-page {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: radial-gradient(circle at top left, rgba(0, 194, 224, 0.14), transparent 30rem), radial-gradient(circle at top right, rgba(21, 14, 96, 0.14), transparent 34rem), #f2fbfd;
}

.auth-card {
    width: 100%;
    max-width: 33rem;
    padding: 3.5rem 3.25rem;
    border: 0.0625rem solid rgba(21, 14, 96, 0.14);
    border-radius: 2rem;
    background: #ffffff;
    box-shadow: 0 1.5rem 3.5rem rgba(21, 14, 96, 0.12);
}

.auth-title {
    margin: 0 0 0.5rem;
    color: #150e60;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.auth-subtitle {
    margin: 0 0 1.75rem;
    color: #5b6b8c;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.auth-form .form-floating {
    margin: 0 0 0.9rem;
}

.auth-form .form-control {
    border: 0.0625rem solid #e0f7fc;
    border-radius: 1rem !important;
}

.auth-form .form-control:focus {
    border-color: #150e60;
    box-shadow: 0 0 0 0.2rem rgba(21, 14, 96, 0.14);
}

.auth-password-field {
    position: relative;
}

.auth-password-field .form-control {
    padding-right: 2.9rem;
}

.auth-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0.2rem;
    bottom: 0;
    width: 2.6rem;
    color: #93a3b8;
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: #150e60;
}

.auth-password-hints {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: #5b6b8c;
    font-size: 0.8rem;
    line-height: 1.5;
}

.auth-error-display {
    margin: 0 0 1rem;
    color: #dc3545;
    font-size: 0.85rem;
}

.auth-error-display.hidden {
    display: none;
}

.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.1rem;
    margin: 0.4rem 0 1.4rem;
    border: none;
    border-radius: 999rem;
    background: #d4f634;
    color: #150e60;
    font-size: 1rem;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-btn-primary:hover,
.auth-btn-primary:focus {
    color: #150e60;
    transform: translateY(-0.06rem);
    box-shadow: 0 0.6rem 1.4rem rgba(212, 246, 52, 0.35);
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.auth-links a {
    color: #150e60;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-links a:hover,
.auth-links a:focus {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1.1rem;
    color: #93a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 0.0625rem;
    background: #e0f7fc;
}

.auth-divider span {
    padding: 0 0.85rem;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.auth-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    border: 0.0625rem solid #e0f7fc;
    border-radius: 999rem;
    color: #150e60;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.auth-social a:hover,
.auth-social a:focus {
    border-color: #150e60;
    background: #f2fbfd;
    text-decoration: none;
}

/* Registration success page */

.auth-success-card {
    text-align: center;
}

.auth-success-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto 1.4rem;
    border-radius: 999rem;
    background: #d4f634;
    color: #150e60;
    font-size: 1.4rem;
    box-shadow: 0 0.5rem 1.2rem rgba(212, 246, 52, 0.35);
}

.auth-success-card .auth-btn-primary {
    text-decoration: none;
}

/* Account deletion */

.auth-btn-danger {
    background: #dc3545;
    color: #ffffff;
}

.auth-btn-danger:hover,
.auth-btn-danger:focus {
    color: #ffffff;
    box-shadow: 0 0.6rem 1.4rem rgba(220, 53, 69, 0.3);
}

.auth-confirm {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.btn-default {
    color: white;
}

p{
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
    line-height: 1.2;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-floating {
    margin: 10px 0;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.logo-block{
    width: 100%;
    color: #000;
    padding-top: 25px;
}

.white-block{
    background: #fff;
    width: 100%;
    color: #000;
    padding: 25px;
    margin-top: 25px;
}

.text-center{
    text-align: center;
}

img.center{
    width: 270px;
    height: 120px;
    margin-left: 180px;
    margin-right: 180px;
    box-sizing: border-box;
    position: relative;     
}

.lost-password{
    color: #000;
}