@import url('variables.css');

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(rgba(15, 33, 77, 0.8), rgba(15, 33, 77, 0.8)),
        url('https://kamtk.ru/images/corpusA.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 10%;
    background-color: black;
}

a {
    text-decoration: none;
    color: var(--banana);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.container {
    display: flex;
    max-width: 850px;
    width: 100%;
    background: var(--blue);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-direction: column;
}

.login-form {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
}
form{
    margin-top: 1rem;
}
.welcome-section {
    width: 100%;
    background: var(--dark-blue);
    color: var(--text);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}
.error-message{
    color: rgb(201, 198, 0);
    font-weight: bolder;
}
.welcome-section img {
    margin-bottom: 20px;
    max-width: 100px;
    height: auto;
}

.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--banana);
}

.subtitle {
    font-size: 14px;
    color: rgb(220, 224, 202);
    margin-bottom: 25px;
}

.input-box {
    margin-bottom: 18px;
    width: 100%;
}

.input-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text);
}

.input-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.input-box input:focus {
    border-color: var(--accent);
}

.input-box input::placeholder {
    color: var(--addit-text);
    opacity: 1;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.remember-me input {
    margin-right: 5px;
}

.remember-me label {
    color: var(--text);
    white-space: nowrap;
}

.forgot-password {
    margin-bottom: 10px;
}

.forgot-password a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
}

.forgot-password a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 5px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.welcome-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.welcome-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }

    .login-form {
        width: 50%;
        padding: 40px;
    }

    .welcome-section {
        width: 50%;
        padding: 40px;
    }

    .title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .subtitle {
        margin-bottom: 30px;
    }

    .welcome-title {
        font-size: 24px;
    }
}