
* {
    box-sizing: border-box;
}

.border_forme{
    border: 1px solid gray;
    margin-top: 30px;
    padding: 20px;
    border-radius: 30px;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: black;
    background-color: white;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    gap: 0.5rem;
    border-bottom: solid 1px #aaa;
    background-color: #eee;
}

nav a {
    display: inline-block;
    min-width: 9rem;
    padding: 0.5rem;
    border-radius: 0.2rem;
    border: solid 1px #aaa;
    text-align: center;
    text-decoration: none;
    color: #555;
}

nav a[aria-current='page'] {
    color: #000;
    background-color: #d4d4d4;
}

.login-btn {
    display: inline-block;
    min-width: 6rem;
    padding: 0.5rem 1rem;
    border-radius: 0.2rem;
    border: solid 1px #007bff;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background-color: #0056b3;
}

/* Modal Styles */
.modal-overlay {
    /* display: none; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: fixed;       /* fixa na tela */
    top: 50%;              /* metade da altura da tela */
    left: 50%;             /* metade da largura da tela */
    transform: translate(-50%, -50%); /* ajusta para o centro exato */
    background: white;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    padding: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow-x: hidden;
    scrollbar-width: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 0rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 1px solid;
    margin-top: 5px;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #333;
    background: white;
    padding: 0 1rem;
    position: relative;
    display: inline-block;
}



.modal-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.login-form {
    margin-bottom: 2rem;
}

.phone-input-container {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
}

.phone-input-container:focus-within {
    border-color: #007bff;
}

.country-code {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.country-code:hover {
    background-color: #e9ecef;
}

/* .country-code::after {
    content: '▼';
    font-size: 0.8rem;
    color: #666;
    margin-left: auto;
} */

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    /* display: none; */
}

.country-dropdown.active {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.country-option:hover {
    background-color: #f8f9fa;
}

.country-option.selected {
    background-color: #e3f2fd;
}

.phone-input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
}

.phone-input::placeholder {
    color: #999;
}

.continue-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #c2185b, #880e4f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.continue-btn:active {
    transform: translateY(0);
}

/* City Illustration */
.modal-illustration {
    margin-top: 1.5rem;
}

.city-illustration {
    position: relative;
    height: 120px;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 60%, #90EE90 60%, #90EE90 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 1rem 1rem;
}

.building {
    border-radius: 4px 4px 0 0;
    position: relative;
}

.building-1 {
    width: 30px;
    height: 60px;
    background: linear-gradient(135deg, #e91e63, #ad1457);
}

.building-2 {
    width: 25px;
    height: 45px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.building-3 {
    width: 35px;
    height: 70px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.building-4 {
    width: 28px;
    height: 55px;
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.building-5 {
    width: 32px;
    height: 50px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50px;
}

.cloud-1 {
    width: 40px;
    height: 15px;
    top: 20px;
    left: 20px;
    animation: float 6s ease-in-out infinite;
}

.cloud-1::before {
    width: 20px;
    height: 20px;
    top: -10px;
    left: 5px;
}

.cloud-1::after {
    width: 25px;
    height: 18px;
    top: -8px;
    right: 5px;
}

.cloud-2 {
    width: 30px;
    height: 12px;
    top: 30px;
    right: 30px;
    animation: float 8s ease-in-out infinite reverse;
}

.cloud-2::before {
    width: 15px;
    height: 15px;
    top: -8px;
    left: 3px;
}

.cloud-2::after {
    width: 20px;
    height: 14px;
    top: -6px;
    right: 3px;
}

@keyframes float {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .city-illustration {
        height: 100px;
    }
    
    .building-1, .building-2, .building-3, .building-4, .building-5 {
        width: 20px;
    }
    
    .building-1 { height: 45px; }
    .building-2 { height: 35px; }
    .building-3 { height: 55px; }
    .building-4 { height: 40px; }
    .building-5 { height: 38px; }
}

main {
    padding: 1rem;
}

h1 {
    font-weight: bold;
    font-size: 1.5rem;
}

.text_input{
    font-size: 12px;
    width: 100%;
    float: left;
    position: absolute;
    text-align: left;
    color: gray;
    margin-left: 100px;
}

.phone-input-container .toggle-senha, .phone-input-container .toggle-senha2, .phone-input-container .toggle-senha5 {
    position: absolute;
    right: 50px;
    top: 34%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}
.phone-input-container .toggle-senha:hover, .phone-input-container .toggle-senha2:hover, .phone-input-container .toggle-senha5:hover {
    color: #333;
}

.esqueci_login{
    width: 100%;
    float: left;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.2);
    color: gray;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    border-radius: 12px;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.code-input {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px !important;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    outline: none;
    transition: border-color 0.2s ease;
}

.code-input:focus {
    border-color: #007bff;
}

.code-input.error {
    border-color: #e91e63;
    background-color: #ffeef0;
}
.informe h4{
    font-size: 16px;
}
.informe p{
    font-size: 12px;
}
.informe{
    margin-bottom: 20px;
    color: gray;
}
.error{
    float: left;
    text-align: left;
    width: 100%;
    margin-top: -24px;
    font-size: 12px;
    margin-left: 10px;
    color: red;
}

.esqueci_senha{
    text-align: center;
    width: 100%;
    float: left;
    padding: 10px;
    color: blue;
    cursor: pointer;
}
