/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 20px;
}

.modal-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--grey-medium);
    position: relative;
    transition: all 0.3s ease;
}

.modal-tab:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.modal-tab.active {
    color: var(--primary-color);
}

.modal-tab.active:after {
    width: 100%;
}

.modal-content {
    display: none;
}

.modal-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--secondary-color);
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-form input:focus,
.modal-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 162, 101, 0.1);
    outline: none;
}

.modal-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.modal-form .remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-form .remember-me {
    display: flex;
    align-items: center;
}

.modal-form .remember-me input {
    width: auto;
    margin-right: 5px;
}

.modal-form .remember-me label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
}

.modal-form .forgot-password {
    font-size: 14px;
    color: var(--primary-color);
}

.login-bottom-text,
.register-bottom-text {
    margin-top: 15px;
    font-size: 14px;
    color: var(--grey-medium);
}

.login-bottom-text a,
.register-bottom-text a {
    color: var(--primary-color);
    font-weight: 500;
}

.login-social {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
    text-align: center;
}

.login-social p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--grey-medium);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    transition: all 0.3s ease;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.social-button.facebook {
    background-color: #3b5998;
    color: white;
}

.social-button.google {
    background-color: #db4437;
    color: white;
}

.social-button.linkedin {
    background-color: #0077b5;
    color: white;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.terms-agreement {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.terms-agreement input {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}

.terms-agreement label {
    margin: 0;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
}

.terms-agreement a {
    color: var(--primary-color);
}

/* Animation for success message */
.success-message {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-message h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--grey-medium);
    margin-bottom: 20px;
}

/* Media queries */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        margin: 0 15px;
    }
}
