body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    color: #222;
}

#form-container {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 420px;
    transition: all 0.3s ease;
}

h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #222;
}

.d-flex {
    display: flex;
    gap: 10px;
}

#login-tab,
#register-tab {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

#login-tab.active {
    background-color: #4caf50;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#register-tab.active {
    background-color: #4caf50;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#login-tab:not(.active),
#register-tab:not(.active) {
    background-color: #f0f0f0;
    color: #555;
}

#login-tab:not(.active):hover,
#register-tab:not(.active):hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#form-wrapper {
    margin-top: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #4caf50;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}
form button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#message {
    text-align: center;
    font-size: 1rem;
    margin-top: 15px;
}
#message.success {
    color: #4caf50;
}
#message.error {
    color: #f44336;
}

/* Анимационные эффекты */
button,
input {
    transition: all 0.2s ease;
}

/* Адаптивность */
@media (max-width: 500px) {
    #form-container {
        padding: 20px;
    }
    h1 {
        font-size: 1.5rem;
    }
    #login-tab,
    #register-tab {
        font-size: 0.9rem;
    }
    form button {
        font-size: 1rem;
    }
}