* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Shantell Sans', cursive;
}

body {
    /* background: rgba(255, 249, 245, 0.7); */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.block {
    box-shadow: 
        0 2px 8px rgba(237, 123, 171, 0.24), /* Более тонкая тень */
        inset 1px 1px 2px rgba(255,255,255,0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    color: #f5d3dd;
    font-size: 4em;
    line-height: 1;
    font-weight: bold;
    text-shadow: 
        2px 2px 0px #ff99c2,
        3px 3px 0px #ff99c2,
        4px 4px 0px #ff99c2,
        5px 5px 0px #ff99c2,
        6px 6px 0px #ff99c2,
        8px 8px 6px rgba(237, 123, 171, 0.3),
        12px 12px 10px rgba(237, 123, 171, 0.2);
}

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

input[type="text"],
input[type="email"], 
input[type="password"] {
    padding: 15px 25px;
    border: 2px solid #f5d3dd;
    /* color: #ff99c2; */
    border-radius: 15px;
    font-size: 1.1em;
    transition: all 0.3s;
    background: #ffffff;
}
::placeholder {
    color: #937CB3 !important;
    opacity: 0.7 !important;
}

input:focus {
    border-color: #ff99c2;
    box-shadow: 0 0 10px rgba(255,153,194,0.3);
    outline: none;
}

.password-mismatch {
    border-color: #ff99c2 !important;
    background: #fff5f7;
}

button[type="submit"] {
    background: #ff99c2;
    color: white;
    border: 2px solid #ff99c2;
    border-radius: 15px;
    padding: 15px 25px;
    font-size: 1.2rem;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 15px;
}

button[type="submit"]:hover {
    background: white;
    color: #ff99c2;
}

.checkbox-group {
    margin: 15px 0;
    text-align: left;
}

.checkbox-group label {
    color: #937CB3;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #937CB3;
}

.footer {
    margin-top: 25px;
    text-align: center;
    color: #937CB3;
}

.footer a {
    color: #937CB3;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff99c2;
    font-size: 0.9em;
    margin-top: -5px;
    display: block;
}

.alert {
    padding: 15px 25px;
    margin: 0 auto 20px;
    border-radius: 15px;
    max-width: 400px;
    text-align: center;
    font-size: 0.95em;
    animation: slideDown 0.4s ease-out;
}

.alert-danger {
    background: #ff99c2;
    color: white;
    border: 2px solid #ff709a;
    box-shadow: 0 3px 10px rgba(255,153,194,0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}