/* Общие стили */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

/* Главная */
.welcome .hero {
    background: linear-gradient(135deg, #7f5af0, #9d4edd);
    color: white;
    padding: 100px 20px;
}

.welcome h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 10px;
    text-decoration: none;
    background: #7f5af0;
    color: white;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid white;
}

.btn:hover {
    background: #9d4edd;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.features {
    padding: 60px 20px;
    background: #f5f0ff;
}

.features h2 {
    margin-bottom: 30px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    flex: 1;
    font-size: 1.2rem;
}

/* Авторизация и Регистрация */
.auth {
    background: linear-gradient(135deg, #7f5af0, #9d4edd);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 20px;
    color: #7f5af0;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-top: 5px;
    outline: none;
}

.form-group input:focus {
    border-color: #7f5af0;
    box-shadow: 0 0 5px rgba(127,90,240,0.4);
}

.switch {
    margin-top: 15px;
    font-size: 0.9rem;
}
.switch a {
    color: #7f5af0;
    font-weight: bold;
    text-decoration: none;
}
.switch a:hover {
    text-decoration: underline;
}

/* Кабинет */
.dashboard {
    background: #f5f0ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.dashboard-container h2 {
    margin-bottom: 20px;
    color: #7f5af0;
    text-align: center;
}

.user-info p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.status {
    padding: 10px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: bold;
}

.status.success {
    background: #d9fcd9;
    color: #218838;
}

.status.warning {
    background: #fff4cc;
    color: #856404;
}

.status.danger {
    background: #f8d7da;
    color: #721c24;
}

.logout {
    margin-top: 20px;
    text-align: center;
}

.error { color: red; font-size: 0.8em; }
