/* change_tpin.css - TPIN Change Module Styles */

/* Module Container */
.module-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.form-required {
    color: #dc2626;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* TPIN Strength Meter */
.tpin-strength-meter {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* TPIN Guidelines */
.tpinguidelines {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.tpinguidelines h4 {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpinguidelines ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tpinguidelines li {
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
}

.tpinguidelines li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 16px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Loading Spinner */
.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .module-container {
        padding: 20px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .module-container {
        padding: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tpinguidelines {
        padding: 16px;
    }
    
    .tpinguidelines li {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .btn,
    .loading-overlay {
        display: none !important;
    }
    
    .module-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}