@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #f5f5f5;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.sessao-container {
    width: 60%;
    height: 100vh;
    position: relative;
    background-color: #2c3e50;
}

.sessao-capa-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #083054;
    opacity: 0.7;
    z-index: 1;
}

.sessao-capa-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.welcome-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.welcome-text h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.welcome-text p {
    font-size: 1.2em;
    opacity: 0.9;
}

.form-container {
    width: 40%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box h1 {
    font-size: 1.8em;
    color: #083054;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 0.9em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-icon {
    position: relative;
    width: 100%;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #083054;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.1);
}

.login-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-button:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
}

.message {
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    z-index: 9999;
    animation: fadeOut 3s forwards;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin: 0;
    transform: translateX(0);
}

.message-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.message-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 15px 25px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sessao-container {
        width: 100%;
        height: 30vh;
    }
    
    .form-container {
        width: 100%;
        height: 70vh;
    }
}

.error-actions {
    margin-top: 10px;
    text-align: center;
}

.error-help {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.retry-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background-color: #e0e0e0;
}

.retry-button i {
    font-size: 0.9em;
}

.message-error {
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    color: #cc0000;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}



