* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    margin: 0;
    background: url('/img/imagem-fundo.png') repeat center center fixed, linear-gradient(135deg, #0a0a28 0%, #1a1a3a 100%);
    background-size: cover;
    background-position: center;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 4s infinite, fall 20s linear infinite;
}

.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(-45deg);
    transform-origin: left;
    animation: shootStar 2s linear;
}

.container {
    width: 500px;
    max-width: 90%;
    background-color: rgba(10, 10, 40, 0.7);
    border: 1px solid rgba(100, 100, 200, 0.3);
    border-radius: 10px;
    padding: 50px 40px;
    box-shadow: 0 0 30px rgba(0, 50, 150, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1;
    position: relative;
}

.container h1 {
    font-size: 28px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(100, 150, 255, 0.7);
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 20px 0;
}

.input-box input,
.input-box select {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    color: #fff;
    padding: 15px 45px 15px 20px;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
}

.input-box input:focus,
.input-box select:focus {
    border-color: rgba(0, 200, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.input-box input:not(:placeholder-shown) {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.input-box select option {
    background-color: #1a1a3a;
    color: #fff;
    padding: 10px;
}

.input-box input:-webkit-autofill,
.input-box input:-webkit-autofill:hover,
.input-box input:-webkit-autofill:focus,
.input-box input:-webkit-autofill:active,
.input-box select:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.input-box .input-icon {
    position: absolute;
    right: 20px;
    width: 20px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.form-row {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.form-row .input-box {
    flex: 1;
    margin: 0;
}

.password-match {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-match.visible {
    opacity: 1;
}

.password-match.valid {
    color: #4CAF50;
}

.password-match.invalid {
    color: #ff4444;
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
    transition: color 0.3s ease;
}

.password-strength.weak {
    color: #ff4444;
}

.password-strength.medium {
    color: #ffa700;
}

.password-strength.strong {
    color: #4CAF50;
}

.btn-primary {
    width: 100%;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a3a;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    background: transparent;
    border: 1px solid rgb(0, 200, 255);
    background-color: rgba(0, 200, 255, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 255, 0.5);
}

.btn-primary:disabled {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.link {
    font-size: 14px;
    text-align: center;
    margin: 25px 0 15px;
    color: #fff;
}

.link a {
    text-decoration: none;
    color: #fff;
}

.link a:hover {
    text-decoration: underline;
    color: rgb(100, 220, 150);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
    margin: -15px 0 15px;
}

.remember-forgot label {
    accent-color: #fff;
    margin-right: 5px;
}

.remember-forgot a {
    text-decoration: none;
    color: #fff;
}

.remember-forgot a:hover {
    text-decoration: underline;
    color: rgb(100, 220, 150);
}

.message {
    padding: 10px;
    margin: 15px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.message.success {
    background-color: rgba(100, 220, 150, 0.2);
    border: 1px solid rgba(100, 220, 150, 0.5);
    color: rgb(100, 220, 150);
}

.message.error {
    background-color: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.5);
    color: rgb(255, 100, 100);
}

.message.info {
    background-color: rgba(100, 150, 255, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.5);
    color: rgb(100, 150, 255);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes shootStar {
    0% {
        transform: rotate(-45deg) translateX(0);
        opacity: 1;
    }
    100% {
        transform: rotate(-45deg) translateX(500px);
        opacity: 0;
    }
}

@keyframes fall {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 40px 20px;
    }
    .container h1 {
        font-size: 24px;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}