:root {
    --primary-color: #8B5CF6;
    --primary-hover: #7C3AED;
    --card-background: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --input-background: #3a3a3a;
    --input-border: #4a4a4a;
    --error-color: #ff6b6b;
    --background-dark: #1a1a1a;
}

/* General Body Styles */
body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #1a1a1a;
    /* Темный фон как в index.html */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Full viewport height */
    color: #ffffff;
}

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

.login-card {
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #333;
}

.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: var(--text-primary);
    margin: 0;
    font-weight: 600;
    /* Semi-bold */
}

.login-header p {
    color: var(--text-secondary);
    margin-top: 10px;
}

/* 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 var(--input-border);
    border-radius: 8px;
    /* Rounded input fields */
    font-size: 16px;
    box-sizing: border-box;
    /* Include padding in width */
    background: var(--input-background);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

.login-form input[type="email"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: var(--text-secondary);
    /* Lighter placeholder text */
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    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: var(--primary-hover);
    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;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary-color);
    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;
    }
}

/* Alert/Message Styles */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background-color: rgba(245, 87, 108, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-success {
    background-color: rgba(102, 126, 234, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.alert-info {
    background-color: rgba(204, 204, 204, 0.1);
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

/* Form Labels */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: left;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Input Container with Icons */
.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}