/* src/main/resources/static/css/style.css */

/* Подключаем шрифт Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.login-container {
    background: white;
    border-radius: 18px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

h2 {
    margin-bottom: 1.5rem;
    color: #2d3436;
    font-weight: 600;
    font-size: 1.8rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"],
input[type="password"] {
    padding: 0.9rem;
    border: 1px solid #dcdde1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.25s ease;
    background-color: #fafafa;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #6c5ce7;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

button {
    background: linear-gradient(135deg, #6c5ce7, #0984e3);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #00cec9, #0984e3);
    transform: translateY(-1px);
}

.message {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.message.error {
    color: #d63031;
}

.message.success {
    color: #00b894;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem;
        border-radius: 12px;
    }

    h2 {
        font-size: 1.5rem;
    }
}
