.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--white);
}

.modal-tab {
    display: none;
	padding: 40px;
}

.modal-tab.active {
    display: block;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
}

.modal-header h2 {
    font-size: 20px;
  	color: var(--primary-dark);
  	margin: 0;
  	font-weight: 600;
  	padding: 10px;
}

.modal-form {
    margin-bottom: 25px;
}

.modal-footer {
    text-align: center;
    font-size: 13px;
    color: #666;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-footer p {
    margin: 0 0 10px 0;
}

.modal-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal.active {
        padding: 20px;
    }
    
    .modal-content {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }
    
    .modal-logo {
        width: 40px;
        height: 40px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
}
