@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #284296;
}

#video-bg {
    position: fixed;
    right: 0; bottom: 0;
    min-width: 100%; min-height: 100%;
    z-index: -2;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(40, 66, 150, 0.532), rgba(0, 155, 57, 0.532));
    z-index: -1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

.login-logo {
    height: 70px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h2 { color: #284296; margin-bottom: 5px; font-weight: 700; }
p { color: #666; margin-bottom: 30px; font-size: 0.9rem; }

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper .material-symbols-outlined {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #284296;
    font-size: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    background: #f9f9f9;
}

.input-wrapper input:focus {
    border-color: #007bff; 
    background: white;
    box-shadow: 0 4px 10px rgba(0, 155, 58, 0.1);
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #009b3a, #016d25);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 155, 58, 0.3);
    margin-top: 10px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 155, 58, 0.4);
}

button:active { transform: scale(0.98); }

.erro {
    color: #c0392b;
    background: #ffebee;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    display: none;
    border: 1px solid #ffcdd2;
    animation: shake 0.4s ease-in-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.fade-out-effect {
    animation: fadeOutScreen 1s forwards;
    pointer-events: none;
}

@keyframes fadeOutScreen {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); filter: blur(10px); }
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 30px;
    box-sizing: border-box;
    overflow: hidden !important;
    transition: 0.3s;
}

.password-wrapper:focus-within {
    border-color: #007bff; 
    background: white;
    box-shadow: 0 4px 10px rgba(0, 155, 58, 0.1);
}

.password-wrapper > span:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #284296;
    font-size: 20px;
    z-index: 2;
    pointer-events: none;
}

.password-wrapper input {
    flex-grow: 1;
    width: 100%;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0;
    padding: 15px; 
    padding-left: 45px !important;
    padding-right: 45px !important;
    
    font-size: 1rem;
    color: #000;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #284296;
    z-index: 3;
    user-select: none;
    display: flex;
}

.toggle-password:hover {
    color: #4a6de3;
}