body {
    background-image: url("journal_background 1.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #464646;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}


.login-container {
    display: flex;
    background-color: #162b58;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 800px;
    max-width: 95%;
}

.login-form {
    background-color: #1a6fbf;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
}

.login-form h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.back-link {
    color: #cfd8dc;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input {
    width: 93%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    color: #333;
    outline: none;
}

.form-group input:focus {
    box-shadow: 0 0 0 2px #1a6fbf;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: #cfd8dc;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #3aaaf9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #2d9be5;
}

/* Правая часть информации (ваш стиль) */
.login-info {
    background-color: #122041;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    color: white;
}

.login-info img {
    width: 100px;
    height: 100px;
    padding: 20px;
    margin: 20px;
}

.college-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.slogan {
    font-size: 14px;
    color: #cfd8dc;
    font-style: italic;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px; 
    padding: 20px;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #3aaaf9;
    margin-bottom: 20px;
}

.header__controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.controls__title-group img {
    height: 40px;
    margin-right: 10px;
}

.controls__title-group a {
    text-decoration: none;
}

.controls__title-group p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: white;
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main__welcome {
    background-color: #162b58; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    overflow: hidden;
    width: 100%;
    max-width: 600px; 
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
    color: white;
}

.welcome__content h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px;
}

.welcome__content .description {
    font-size: 16px;
    color: #cfd8dc; 
    line-height: 1.6;
}

.welcome__controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; 
}


.controls__auth-button {
    width: 100%;
    padding: 12px;
    background-color: #3aaaf9; 
    color: white;
    border: none;
    border-radius: 6px; 
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.controls__auth-button p {
    margin: 0;
}

.controls__auth-button:hover {
    background-color: #2d9be5;
}

.controls__about-button,
.controls__back-button {
    width: 325px; 
    padding: 12px;
    background-color: #e91e63; 
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.controls__about-button img,
.controls__back-button img {
    width: 20px;
    height: 20px;
}

.controls__about-button p,
.controls__back-button p {
    margin: 0;
}

.controls__about-button:hover,
.controls__back-button:hover {
    background-color: #c2185b; 
}

.about-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.about-info__content {
    background-color: #1a6fbf;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    color: white;
}

.about-info__content h3 {
    font-size: 22px;
    margin: 0 0 15px;
}

.about-info__content p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.about-info__close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.recovery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.recovery-form {
    background: linear-gradient(135deg, #1a6fbf 0%, #162b58 100%);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

.recovery-form h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.recovery-form .logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.recovery-form .logo-container img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.form__controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form__controls .input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form__controls .input:focus {
    border-color: #3aaaf9;
    box-shadow: 0 0 0 4px rgba(58, 170, 249, 0.2);
    background-color: white;
}

.form__controls .input::placeholder {
    color: #999;
    font-size: 14px;
}

.main__controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.controls__auth {
    width: 100% !important;
    max-width: 100% !important;
}

.auth__button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3aaaf9 0%, #1a6fbf 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 170, 249, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth__button:hover {
    background: linear-gradient(135deg, #2d9be5 0%, #155a8a 100%);
    box-shadow: 0 6px 20px rgba(58, 170, 249, 0.4);
    transform: translateY(-2px);
}

.auth__button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(58, 170, 249, 0.3);
}

.supporting__control {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.supporting__back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: rgba(233, 30, 99, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.supporting__back-button:hover {
    background-color: #c2185b;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    transform: translateY(-2px);
}

.supporting__back-button img {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.supporting__back-button:hover img {
    transform: translateX(-3px);
}

/* Сообщение об ошибке/успехе */
.message-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    display: none;
    animation: slideIn 0.3s ease;
}

.message-box.success {
    background-color: rgba(76, 175, 80, 0.9);
    border: 1px solid #4caf50;
    display: block;
}

.message-box.error {
    background-color: rgba(244, 67, 54, 0.9);
    border: 1px solid #f44336;
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .recovery-container {
        padding: 10px;
    }

    .recovery-form {
        padding: 30px 20px;
        max-width: 100%;
    }

    .recovery-form h1 {
        font-size: 24px;
    }

    .form__controls .input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .auth__button {
        padding: 12px 18px;
        font-size: 15px;
    }

    .recovery-form .logo-container img {
        width: 70px;
    }
}

@media (max-width: 480px) {
    .recovery-form {
        padding: 25px 15px;
    }

    .recovery-form h1 {
        font-size: 22px;
    }

    .form__controls .input {
        padding: 11px 12px;
        font-size: 14px;
    }

    .auth__button {
        padding: 11px 16px;
        font-size: 14px;
    }
}