/* assets/css/templates/modern.css */
.byteplugs-modal.modern {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.byteplugs-modal.modern .byteplugs-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5vh auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modern .modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 100;
}

.modern .modal-close:hover {
    background-color: rgba(0,0,0,0.05);
    color: #333;
    transform: rotate(90deg);
}

.modern .modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modern .modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    line-height: 1.3;
}

.modern .modal-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 10px 0 20px;
}

.modern .auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modern .auth-tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1em;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.modern .auth-tab-btn.active {
    color: #2271b1;
}

.modern .auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2271b1;
}

.modern .auth-tab-content {
    display: none;
}

.modern .auth-tab-content.active {
    display: block;
}

.modern .form-row {
    margin-bottom: 15px;
}

.modern .input-group {
    position: relative;
}

.modern .input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.modern .input-group input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.modern .remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    margin: 15px 0;
}

.modern .checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
}

.modern .checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.modern .forgot-password {
    color: #2271b1;
    text-decoration: none;
}

.modern .forgot-password:hover {
    text-decoration: underline;
}

.modern .byteplugs-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modern .byteplugs-btn-primary {
    background-color: #2271b1;
    color: white;
}

.modern .byteplugs-btn-primary:hover {
    background-color: #185182;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.modern .terms {
    font-size: 0.9em;
    color: #666;
    margin: 15px 0;
}

.modern .terms a {
    color: #2271b1;
    text-decoration: none;
}

.modern .terms a:hover {
    text-decoration: underline;
}

.modern .message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95em;
    display: none;
}

.modern .message.error {
    background-color: #fff2f0;
    color: #d32f2f;
    border: 1px solid #ffa4a4;
}

.modern .message.success {
    background-color: #f0f9f4;
    color: #1e8a4c;
    border: 1px solid #a3e2c6;
}

@media (max-width: 480px) {
    .modern .byteplugs-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}