/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

/* Reset e estilos globais */
* {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    -moz-osx-font-smoothing: grayscale;
    outline: none !important;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header-embedded {
    background-color: #fff;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
}

.header-embedded img {
    height: 30px;
    margin-top: 0;
}

/* Container principal */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Login container */
.login {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

/* App content - card do formulário */
.app-content {
    background: #FFF;
    border-radius: 8px;
    color: #404040;
    display: inline-block;
    margin-top: 25px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e0;
    padding: 40px 50px;
    min-width: 400px;
    max-width: 450px;
}

/* Ícone do logo no card */
.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Título do formulário */
.form-title {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: #404040;
    margin-bottom: 10px;
    text-align: center;
}

/* Subtítulo */
.form-subtitle {
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    text-align: center;
}

/* Formulário */
.app-form fieldset {
    border: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.app-form ul {
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.app-form ul li {
    height: auto;
    margin-bottom: 16px;
    text-align: center;
}

/* Wrapper do input com ícone */
.input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-bottom-color: #4D46DF;
}

.input-wrapper .icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #888;
    flex-shrink: 0;
}

.input-wrapper .icon svg {
    width: 20px;
    height: 20px;
    fill: #888;
}

/* Ícone do olhinho para visibilidade */
.input-wrapper .icon-eye {
    margin-left: auto;
    margin-right: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-wrapper .icon-eye:hover {
    color: #4D46DF;
}

.input-wrapper .icon-eye:hover svg {
    fill: #4D46DF;
}

.input-wrapper .icon-eye svg {
    display: block;
}

.input-wrapper .icon-eye .eye-closed {
    display: none;
}

/* Inputs */
.app-form input[type="text"],
.app-form input[type="email"],
.app-form input[type="password"] {
    background-color: #FFF;
    border: none;
    border-radius: 0;
    color: #404040;
    font-size: 16px;
    padding: 0 0 0 8px;
    width: 100%;
    height: 26px;
    font-family: "Outfit", sans-serif;
}

.app-form input::placeholder {
    color: #aaa;
    font-family: "Outfit", sans-serif;
}

.app-form input:focus {
    outline: none;
}

/* Botões */
.app-form ul li.buttons {
    margin-top: 40px;
    text-align: center;
}

.form-container .btn {
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    height: 40px;
    padding: 0;
    text-align: center;
    -webkit-appearance: none;
    width: 100%;
    transition: background-color 0.3s ease;
}

.form-container .primary-button {
    background-color: #4D46DF;
    color: #FFF;
}

.form-container .primary-button:hover {
    background-color: #3d38b8;
}

#submit-btn {
    width: 100%;
}

/* Mensagem de sucesso/erro */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

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

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsivo */
@media (max-width: 480px) {
    .app-content {
        min-width: 100%;
        padding: 30px 25px;
        margin: 10px;
    }
    
    .main-container {
        padding: 10px;
    }
}
