:root {
    --primary-color: #4361ee;
    --primary-light: #5e72e4;
    --secondary-color: #3f37c9;
    --success-color: #4bb543;
    --error-color: #ff3333;
    --bg-color: #f8f9fa;
    --text-color: #2d3748;
    --light-text: #718096;
    --card-bg: #ffffff;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    cursor: default;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    opacity: 0.1;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.login-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.logo-icon {
    width: 40px;
    height: 40px;
    fill: white;
}

h1 {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--light-text);
    transition: var(--transition);
}

input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
    cursor: default;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

input:focus + .input-icon {
    fill: var(--primary-color);
}

.login-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
}

.login-button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(67, 97, 238, 0.25);
}

.login-button:active {
    transform: translateY(0);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.message-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
}

.show-message {
    opacity: 1 !important;
}

.success {
    background-color: rgba(75, 181, 67, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(75, 181, 67, 0.3);
}

.error {
    background-color: rgba(255, 51, 51, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.loader {
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    animation: fadeIn 0.6s ease-out forwards;
    user-select: none;
}

/* Адаптивность */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--light-text);
}

.close-modal:hover {
    color: var(--text-color);
}
.login-button, .forgot-password a {
    cursor: pointer;
}