* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1f2b3d, #2f4a68);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 480px;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    transform: translateY(20px);
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #80D0FF;
    letter-spacing: 1.5px;
    font-weight: 600;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ccc;
    opacity: 0;
    animation: fadeInText 1s ease-out 0.2s forwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.input-section {
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-size: 1rem;
    font-weight: 500;
    color: #ddd;
    display: block;
    margin-bottom: 8px;
}

input[type="number"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #80D0FF;
    outline: none;
    transform: scale(1.02);
}

button {
    width: 100%;
    padding: 14px;
    background: #80D0FF;
    color: #1f2b3d;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
    background: #66B8E4;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

.result {
    margin-top: 30px;
    opacity: 0;
    animation: fadeInResult 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInResult {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.result p {
    font-size: 1.2rem;
    font-weight: 500;
}

.result.success {
    color: #28a745;
}

.result.warning {
    color: #ffc107;
}

.result.alert {
    color: #dc3545;
}

.result p.visible {
    opacity: 1;
}

.logout-button {
    background: transparent;
    color: #80D0FF;
    font-size: 1rem;
    border: 2px solid #80D0FF;
    padding: 12px 24px;
    margin-top: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.logout-button:hover {
    background: #80D0FF;
    color: #1f2b3d;
    transform: scale(1.05);
}

.logout-button:active {
    transform: scale(0.98);
}

.forgot-password,
.signup-link,
.cadastro-form {
    font-size: 0.9rem;
    margin-top: 20px;
}

.forgot-password a,
.signup-link a {
    color: #80D0FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover,
.signup-link a:hover {
    color: #66B8E4;
}

.cadastro-form {
    margin-top: 20px;
}

.cadastro-form input {
    margin-bottom: 10px;
}

#cadastro-mensagem {
    margin-top: 10px;
    font-size: 1rem;
    color: #80D0FF;
}

input[type="email"],
input[type="password"] {
    margin-bottom: 15px;
}

button {
    width: 100%;
}

body {
    background: linear-gradient(120deg, #1f2b3d, #6e7fdb);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.7rem;
    }

    p {
        font-size: 1rem;
    }

    button {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    button {
        font-size: 1rem;
    }

    .input-section {
        margin-bottom: 15px;
    }
}