﻿/**
 * Стили для страницы авторизации
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fb;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a3042 0%, #3a4055 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-header {
    background: linear-gradient(135deg, #6576ff 0%, #6a11cb 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

    .login-header h2 {
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 24px;
    }

    .login-header p {
        opacity: 0.9;
        font-size: 15px;
    }

.login-form {
    padding: 30px;
    background: white;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2a3042;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e4f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fc;
}

    .form-control:focus {
        border-color: #6576ff;
        background: white;
        box-shadow: 0 0 0 3px rgba(101, 118, 255, 0.15);
        outline: none;
    }

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a7a9c0;
    font-size: 18px;
    transition: color 0.2s;
}

    .password-toggle:hover {
        color: #6576ff;
    }

.btn-primary {
    background: linear-gradient(135deg, #6576ff 0%, #6a11cb 100%);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 12px rgba(101, 118, 255, 0.25);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(101, 118, 255, 0.35);
    }

.text-danger {
    color: #f76570;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.alert-danger {
    background-color: #fff5f6;
    color: #f76570;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 30px 0;
    border-left: 4px solid #f76570;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

    .alert-danger:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #f76570;
    }

.login-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(101, 118, 255, 0.1);
    z-index: -1;
}

.decoration-1 {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
}

.decoration-2 {
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
}

.login-footer {
    text-align: center;
    padding: 20px;
    color: #a7a9c0;
    font-size: 13px;
    border-top: 1px solid #f0f2f8;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px; /* Add space between the checkbox and the button */
}

.form-check-label {
    font-size: 14px; /* Ensure the label has a consistent size */
    color: #2a3042; /* Consistent color for the label */
    margin: 0; /* Remove default margin */
}

.login-form .form-group:last-child {
    margin-bottom: 32px; /* Adds extra space below the last form group (checkbox) */
}
