.main-form{
    width: 400px;
}

.btn{
    width: 200px;

}



.container.py-5 {
    max-width: 700px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.card {
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f1f1f1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
}

.card-body h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
}

.card-body p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.card-body p strong {
    color: #222;
}

.card-body span.text-muted {
    color: #888;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
}

.card-body a {
    text-decoration: none;
}

.card-body a:hover {
    text-decoration: none;
}


.navbar {
    box-shadow: rgba(32, 36, 72, 0.2) 0px 4px 15px;
}

.navbar img {
    width: 40px;
    height: 40px;

}
.navbar .img-text {
    color: rgb(25, 109, 60);
    font-weight: 700;
    font-size: 14px;
}


.navbar-links-style{
    color:rgb(37, 146, 82);
}

.navbar-links-style:hover{
    color: rgb(31, 207, 104);
}

.form-error{
    text-decoration: none;
    color:red;
}

.form-error ul{
    list-style: none;
}

.password-input {
    padding-right: 3rem; /* отступ справа, чтобы кнопка не закрывала текст */
}
#togglePassword{
    width: 50px;

}


/* ===== PAGE ===== */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f7ee, #f4fff8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CARD ===== */

.login-card {
    width: 900px;
    max-width: 95%;
    background: #fff;
    border-radius: 18px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.15);
}

/* ===== LEFT SIDE ===== */

.login-side {
    width: 40%;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: #fff;
    padding: 40px;
    display: flex;
    align-items: center;
}

.login-side-content h2 {
    font-weight: 600;
    margin-bottom: 12px;
}

.login-side-content p {
    opacity: .9;
    line-height: 1.6;
}

/* ===== FORM ===== */

.login-form {
    width: 60%;
    padding: 40px;
}

.login-form h3 {
    font-weight: 600;
    color: #0a3622;
}

.form-floating > label {
    color: #6c757d;
}

/* ===== PASSWORD TOGGLE ===== */

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.password-toggle:hover {
    color: #2e7d32;
}

/* ===== LINKS ===== */

.forgot-link {
    color: #2e7d32;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-side {
        width: 100%;
        text-align: center;
    }

    .login-form {
        width: 100%;
    }
}

/* ===== BACK LINK ===== */

.login-back {
    text-align: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2e7d32;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* =========================
   STANDALONE AUTH PAGE
========================= */

:root {
    --bg-color: #02020a;
    --text-color: #ffffff;
    --accent-gradient: linear-gradient(90deg, #ff8c42, #ff0055);
    --accent-pink: #e6005c;
    --accent-orange: #ff9933;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-radius: 20px;
}

.auth-standalone-page {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.auth-standalone-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    position: relative;
    z-index: 2;
}

.auth-standalone-card {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.auth-standalone-inner {
    padding: 42px 34px 34px;
    text-align: center;
}

.auth-standalone-logo {
    width: 84px;
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.22));
}

.auth-standalone-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.auth-standalone-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.auth-standalone-subtitle {
    font-size: 14px;
    color: #b8b8b8;
    margin-bottom: 28px;
}

.auth-standalone-label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #e8e8e8;
    letter-spacing: 0.8px;
}

.auth-standalone-inner input[type="text"],
.auth-standalone-inner input[type="password"],
.auth-standalone-inner input[type="email"],
.auth-standalone-inner .form-control {
    width: 100%;
    height: 54px;
    background: rgba(0,0,0,0.7) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 14px !important;
    padding: 0 16px !important;
    color: #fff !important;
    font-size: 15px;
    box-shadow: none !important;
}

.auth-standalone-inner input::placeholder,
.auth-standalone-inner .form-control::placeholder {
    color: #9a9a9a !important;
}

.auth-standalone-inner input:focus,
.auth-standalone-inner .form-control:focus {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 0.15rem rgba(255,153,51,0.18) !important;
    background: rgba(0,0,0,0.82) !important;
    color: #fff !important;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input,
.auth-password-wrap .form-control {
    padding-right: 52px !important;
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #b5b5b5;
    cursor: pointer;
    font-size: 16px;
}

.auth-password-toggle:hover {
    color: var(--accent-orange);
}

.auth-standalone-submit {
    margin-top: 10px;
    padding: 15px 24px;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    color: #fff;
    background: var(--accent-gradient) !important;
    box-shadow: 0 4px 18px rgba(255, 0, 85, 0.35);
}

.auth-standalone-submit:hover {
    transform: translateY(-2px);
}

.auth-standalone-links {
    margin-top: 20px;
    text-align: center;
}

.auth-standalone-links a {
    color: #d0d0d0;
    font-size: 14px;
}

.auth-standalone-links a:hover {
    color: var(--accent-orange);
}

.auth-standalone-error {
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(230, 0, 92, 0.12);
    border: 1px solid rgba(230, 0, 92, 0.25);
    color: #ffc1d6;
    font-size: 13px;
}

.auth-standalone-field-error {
    margin-top: 6px;
    text-align: left;
    font-size: 12px;
    color: #ff9bb8;
}

.auth-standalone-field-error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* glow */
.bg-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 520px;
    height: 520px;
    background: purple;
}

.blob-2 {
    bottom: 5%;
    right: -10%;
    width: 440px;
    height: 440px;
    background: blue;
}

.blob-3 {
    top: 48%;
    left: 28%;
    width: 260px;
    height: 260px;
    background: var(--accent-pink);
    opacity: 0.18;
}

@media (max-width: 576px) {
    .auth-standalone-inner {
        padding: 30px 20px 24px;
    }

    .auth-standalone-title {
        font-size: 30px;
    }
}