html {
    height: 100%;
    overflow-y: scroll;
}

body {
    height: 100%;
    margin: 0;
    background-color: #f0f0f0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                      url('/images/background-login.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #444;
    -webkit-font-smoothing: antialiased;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px 30px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.header {
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-logo {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto 10px auto;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 700;
    font-size: 14px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 1);
    box-sizing: border-box;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    box-shadow: none;
    border-color: #d291bc;
}

.toggle-btn:focus {
    outline: none;
    border-color: #b56a9a;
}

.password-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 20px;
}

.password-row input {
    flex: 1;
    margin-bottom: 0;
    box-sizing: border-box;
}

.toggle-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #d291bc;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(210, 145, 188, 0.3);
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #c173a5;
}

.footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #444;
}

.footer a {
    color: #b56a9a;
    text-decoration: underline;
    font-weight: bold;
}

.btn-logout-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #ddd;
    padding: 7px 15px;
    border-radius: 20px;
    cursor: pointer;
    color: #444;
    font-size: 12px;
}

.registration-success-box {
    background-color: rgba(253, 250, 252, 0.95);
    border: 1px solid #d291bc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    animation: slideIn 0.4s ease-out;
}

.success-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.success-title {
    margin: 0;
    font-weight: 700;
    color: #b56a9a;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.success-desc {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.alert-danger {
    background-color: rgba(255, 240, 240, 0.9);
    color: #c00;
}

.alert-success {
    background-color: rgba(240, 255, 240, 0.9);
    color: #008000;
}