:root {
    --primary-color: #5858ed;
    --primary-hover: #4040b8;
    --card-background: #ffffff;
    --text-primary: #333;
    --text-secondary: #777;
    --input-background: #f8f9fa;
    --input-border: #e9ecef;
    --error-color: #dc3545;
}

/* General Body Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    /* Новый фирменный светлый фон */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Full viewport height */
    color: #333;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--background-gradient);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    width: 180px;
    /* Slightly larger logo */
    height: auto;
    margin-bottom: 25px;
    /* More space below logo */
}

.login-header h1 {
    font-size: 26px;
    /* Larger, more prominent heading */
    color: #333;
    margin: 0;
    font-weight: 600;
    /* Semi-bold */
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Space between form groups */
}

.form-group {
    position: relative;
    /* For potential floating labels or icons */
}

.form-group label.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Rounded input fields */
    font-size: 16px;
    box-sizing: border-box;
    /* Include padding in width */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f5f7fa;
}

.login-form input[type="email"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: #999;
    /* Lighter placeholder text */
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #5858ed;
    box-shadow: 0 0 0 3px rgba(88, 88, 237, 0.15);
    outline: none;
}

.login-button {
    background-color: #5858ed;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #3d3db8;
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

/* Footer Links */
.login-footer {
    margin-top: 25px;
    font-size: 15px;
}

.login-footer p {
    margin: 8px 0;
}

.login-footer a {
    color: #5858ed;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        /* Adjust padding for smaller screens */
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-logo {
        width: 150px;
    }
}